osseps
nimony/lib/std/private/osseps.nim
.. importdoc:: ospaths2.nim
const doslikeFileSystem: boolconst CurDir: charThe constant character used by the operating system to refer to the current directory.
For example:
'.'for POSIX or':'for the classic Macintosh.const ParDir: stringThe constant string used by the operating system to refer to the parent directory.
For example:
".."for POSIX or"::"for the classic Macintosh.const DirSep: charThe character used by the operating system to separate pathname components, for example:
'/'for POSIX,':'for the classic Macintosh, and'\\'on Windows.const AltSep: charAn alternative character used by the operating system to separate pathname components, or the same as DirSep if only one separator character exists. This is set to
'/'on Windows systems where DirSep is a backslash ('\\').const PathSep: charThe character conventionally used by the operating system to separate search path components (as in PATH), such as
':'for POSIX or';'for Windows.const FileSystemCaseSensitive: boolTrue if the file system is case sensitive, false otherwise. Used by
cmpPaths proc_ to compare filenames properly.const ExeExt: stringThe file extension of native executables. For example:
""for POSIX,"exe"on Windows (without a dot).const ScriptExt: stringThe file extension of a script file. For example:
""for POSIX,"bat"on Windows.const DynlibFormat: stringThe format string to turn a filename into a
DLL:idx: file (also calledshared object:idx: on some operating systems).const ExtSep: charThe character which separates the base filename from the extension; for example, the
'.'inos.nim.