FsShimFileSystemExtension extension
File system extension.
- on
Methods
-
absolutePath(
String path) → String -
Available on FileSystem, provided by the FsShimFileSystemExtension extension
Absolute path, normalized and with dot separators removed. Ifpathis already absolute, it is returned as is (after normalization and dot separator removal). Otherwise, it is joined with the path of currentDirectory to form an absolute path. -
normalizePath(
String path) → String -
Available on FileSystem, provided by the FsShimFileSystemExtension extension
Normalize a path, removing redundant separators and up-level references. -
pathEquals(
String path1, String path2) → bool -
Available on FileSystem, provided by the FsShimFileSystemExtension extension
Path equality based on absolute paths. -
pathHashCode(
String path) → int -
Available on FileSystem, provided by the FsShimFileSystemExtension extension
Path hash code based on absolute paths. -
sandbox(
{String? path}) → FileSystem -
Available on FileSystem, provided by the FsShimFileSystemExtension extension
File system sandboxing Directory from an optional path, null meaning currentDirectory, If the original is a sandbox, the tree is sanitized (i.e. never 2 levels of sandboxing. -
unsandbox(
{String? path}) → Directory -
Available on FileSystem, provided by the FsShimFileSystemExtension extension
Unsandbox a file system, returning the root directory of the sandbox. return currentDirectory if not sandboxed.