src/file_utils

Source   Edit  

Procs

func `$`(path: Path): auto {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc bfsFileTree(rootDir: Path; filename: string;
                 suffix: Option[string] = none(string)): Option[Path] {.
    ...raises: [OSError], tags: [ReadDirEffect], forbids: [].}
Source   Edit  
proc getFileContent(file: File): auto {....raises: [IOError], tags: [ReadIOEffect],
                                        forbids: [].}
Source   Edit  
proc getFileContent(path: Option[Path]): auto {....raises: [IOError, ValueError],
    tags: [ReadIOEffect, ReadDirEffect], forbids: [].}
Source   Edit  
proc getFileContent(path: Path): auto {....raises: [IOError, ValueError],
                                        tags: [ReadDirEffect, ReadIOEffect],
                                        forbids: [].}
Source   Edit  
func getSomePath(path: string): auto {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc isJson(path: Path): auto {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc prepareOutFile(path: Option[Path]; force: bool = false): auto {.
    ...raises: [OSError, ValueError, IOError],
    tags: [ReadDirEffect, WriteDirEffect], forbids: [].}
Source   Edit  
proc prepareOutFile(path: Path; force: bool = false): auto {.
    ...raises: [OSError, ValueError, IOError],
    tags: [ReadDirEffect, WriteDirEffect], forbids: [].}
Source   Edit  

Templates

template f(path: Path): auto
Source   Edit