StaticresolveResolve a path that may be relative, absolute, or use home directory notation.
The path to resolve (supports ~/, relative, and absolute paths)
OptionalbasePath: stringOptional base directory for relative path resolution
Resolved absolute path
StaticmakeConvert an absolute path back to a relative path from a base directory
StaticupdateStaticupdateStaticnormalizeNormalize path separators for cross-platform compatibility
StaticisCheck if a path is within a given directory
StaticgenerateGenerate a unique filename if a file already exists
StaticvalidateValidate that a path is safe for file operations
StaticgetExtract directory depth from a path
StaticfindFind common base directory for multiple paths
StatictoConvert Windows paths to Unix-style for markdown links
StaticgetGet file extension with fallback handling
StaticisCheck if path represents a markdown file
StaticsafejoinSafely join paths, handling edge cases
StaticisCheck if a path is a directory
StaticlooksCheck if a path looks like a directory (ends with / or )
StaticresolveResolve destination path when target might be a directory If destination is a directory, preserves the source filename
Utility class for path manipulation and resolution operations.
Provides comprehensive path handling for markdown file operations including relative path updates, home directory resolution, and cross-platform compatibility.
Example
Path resolution
Example
Relative path updates for moved files