entrytypes

    Dark Mode
Search:
Group by:

This module handles the work which comes with types of filesystem entries, i.e. parsing them and extracting them from paths

Types

EntryType = enum
  etNormal, etRegularFile, etDirectory, etSymbolicLink, etFIFO, etSocket, etDoor,
  etBlockDevice, etCharacterDevice, etOrphanedSymbolicLink, etSetuid, etSetgid,
  etSticky, etOtherWritable, etStickyAndOtherWritable, etExecutableFile,
  etMissingFile, etCapabilities, etMultipleHardLinks, etLeftCode, etRightCode,
  etEndCode, etReset, etClearLine
Represents an entry type

Procs

proc strToEntryType(str: string): Option[EntryType] {...}{.raises: [], tags: [].}
Parses a string into an entry type if possible
proc pathEntryType(path: string): EntryType {...}{.raises: [OSError], tags: [].}
Determines the entry type of this path