Home / Function/ is_local_directory() — svelte Function Reference

is_local_directory() — svelte Function Reference

Architecture documentation for the is_local_directory() function in download.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  1ffdff25_387a_2e36_de0b_1242bccbb3d1["is_local_directory()"]
  65d20932_41e6_eeee_7338_5dd0682e5e42["download.js"]
  1ffdff25_387a_2e36_de0b_1242bccbb3d1 -->|defined in| 65d20932_41e6_eeee_7338_5dd0682e5e42
  style 1ffdff25_387a_2e36_de0b_1242bccbb3d1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

playgrounds/sandbox/scripts/download.js lines 31–37

function is_local_directory(arg) {
	try {
		return fs.existsSync(arg) && fs.statSync(arg).isDirectory();
	} catch {
		return false;
	}
}

Domain

Subdomains

Frequently Asked Questions

What does is_local_directory() do?
is_local_directory() is a function in the svelte codebase, defined in playgrounds/sandbox/scripts/download.js.
Where is is_local_directory() defined?
is_local_directory() is defined in playgrounds/sandbox/scripts/download.js at line 31.

Analyze Your Own Codebase

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

Try Supermodel Free