Home / Function/ fixWinEPERMSync() — astro Function Reference

fixWinEPERMSync() — astro Function Reference

Architecture documentation for the fixWinEPERMSync() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  9efbd3f5_9cf8_c935_d6fe_d11a6ecf3b26["fixWinEPERMSync()"]
  84a07ec6_4b25_7206_06c7_0879729882b9["index.ts"]
  9efbd3f5_9cf8_c935_d6fe_d11a6ecf3b26 -->|defined in| 84a07ec6_4b25_7206_06c7_0879729882b9
  41f9ede7_b84d_00dc_ec74_b1f944390409["emptyDir()"]
  41f9ede7_b84d_00dc_ec74_b1f944390409 -->|calls| 9efbd3f5_9cf8_c935_d6fe_d11a6ecf3b26
  style 9efbd3f5_9cf8_c935_d6fe_d11a6ecf3b26 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/fs/index.ts lines 66–93

const fixWinEPERMSync = (p: string, options: fs.RmDirOptions, er: any) => {
	try {
		fs.chmodSync(p, 0o666);
	} catch (er2: any) {
		if (er2.code === 'ENOENT') {
			return;
		} else {
			throw er;
		}
	}

	let stats;
	try {
		stats = fs.statSync(p);
	} catch (er3: any) {
		if (er3.code === 'ENOENT') {
			return;
		} else {
			throw er;
		}
	}

	if (stats.isDirectory()) {
		fs.rmdirSync(p, options);
	} else {
		fs.unlinkSync(p);
	}
};

Domain

Subdomains

Called By

Frequently Asked Questions

What does fixWinEPERMSync() do?
fixWinEPERMSync() is a function in the astro codebase, defined in packages/astro/src/core/fs/index.ts.
Where is fixWinEPERMSync() defined?
fixWinEPERMSync() is defined in packages/astro/src/core/fs/index.ts at line 66.
What calls fixWinEPERMSync()?
fixWinEPERMSync() is called by 1 function(s): emptyDir.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free