thatlib

    Dark Mode
Search:
Group by:

Procs

proc absolute(path: string): string {....raises: [ValueError, OSError], tags: [].}
proc as_uri(path: string): string {....raises: [ValueError, OSError], tags: [].}
proc chmod(path: string; permissions: uint) {....raises: [OSError],
    tags: [ReadDirEffect, WriteDirEffect].}
func compare_paths(pathA, pathB: string): int {....raises: [], tags: [].}
proc copy_dir_permissions(source, dest: string; ignore_errors: bool = true) {.
    ...raises: [OSError, IOError, Exception],
    tags: [ReadDirEffect, WriteIOEffect, ReadIOEffect].}
proc copy_file_permissions(source, dest: string; ignore_errors: bool = true) {.
    ...raises: [OSError, IOError, Exception],
    tags: [ReadDirEffect, ReadIOEffect, WriteIOEffect, WriteDirEffect].}
proc counted_lines(path: string): int {....raises: [IOError], tags: [ReadIOEffect].}
proc cwd(): string {....raises: [OSError], tags: [].}
proc dotenv(path: string): string {....raises: [IOError, OSError, JsonParsingError,
    ValueError, Exception], tags: [ReadIOEffect, WriteIOEffect].}
proc env_vars_pairs(): seq[(string, string)] {....raises: [], tags: [ReadEnvEffect].}
proc exists(path: string): bool {....raises: [], tags: [ReadDirEffect].}
proc exists_create_dir(path: string): bool {....raises: [OSError, IOError],
    tags: [WriteDirEffect, ReadDirEffect].}
proc expanduser(path: string): string {....raises: [],
                                        tags: [ReadEnvEffect, ReadIOEffect].}
proc get_conf_dir(): string {....raises: [], tags: [ReadEnvEffect, ReadIOEffect].}
func get_dynlib_format(): string {....raises: [], tags: [].}
proc get_exe(path: string; followSymlinks: bool = true): string {.
    ...raises: [OSError], tags: [ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc get_file_info(path: string; follow_symlinks: bool = true): tuple[
    size, link_count, block_size, permissions: int64] {....raises: [OSError],
    tags: [].}
proc get_file_times_iso(path: string; follow_symlinks: bool = true): tuple[
    last_access, last_write, creation: string] {....raises: [OSError], tags: [].}
proc get_file_times_unix(path: string; follow_symlinks: bool = true): tuple[
    last_access, last_write, creation: int64] {....raises: [OSError], tags: [].}
proc get_md5(path: string): string {....raises: [IOError], tags: [ReadIOEffect].}
proc get_sha1(path: string): string {....raises: [IOError], tags: [ReadIOEffect].}
proc get_size(path: string): BiggestInt {....raises: [IOError, OSError],
    tags: [ReadIOEffect].}
proc get_size_human(path: string): string {....raises: [IOError, OSError],
    tags: [ReadIOEffect].}
func get_suffix_index(path: string): int {....raises: [], tags: [].}
proc get_symlink(path: string): string {....raises: [OSError], tags: [].}
proc get_temporary_dir(): string {....raises: [],
                                   tags: [ReadEnvEffect, ReadIOEffect].}
proc hardlink(source, destination: string) {....raises: [OSError], tags: [].}
proc home(): string {....raises: [], tags: [ReadEnvEffect, ReadIOEffect].}
func is_absolute(path: string): bool {....raises: [], tags: [].}
proc is_dir(path: string): bool {....raises: [], tags: [ReadDirEffect].}
proc is_file(path: string): bool {....raises: [], tags: [ReadDirEffect].}
proc is_file_newer(pathA, pathB: string): bool {....raises: [OSError], tags: [].}
func is_fs_casesensitive(): bool {....raises: [], tags: [].}
proc is_hidden_path(path: string): bool {....raises: [], tags: [].}
proc is_relative_to(path, base: string): bool {....raises: [Exception],
    tags: [RootEffect].}
proc is_root(): bool {....raises: [], tags: [].}
func is_root_dir(path: string): bool {....raises: [], tags: [].}
func is_valid_path(path: string): bool {....raises: [], tags: [].}
func joinpath(paths: openArray[string]): string {....raises: [], tags: [].}
proc line(path: string; line_number: Natural): string {....raises: [IOError],
    tags: [ReadIOEffect].}
proc lines(path: string; start: int = 0; ends: int = 1): seq[string] {.
    ...raises: [IOError], tags: [ReadIOEffect].}
proc mkdir(path: string) {....raises: [OSError, IOError],
                           tags: [WriteDirEffect, ReadDirEffect].}
proc mkhardlink(source, destination: string) {....raises: [OSError], tags: [].}
proc mksymlink(source, destination: string): uint {....raises: [OSError], tags: [].}
func normalized(path: string): string {....raises: [], tags: [].}
func parent(path: string): string {....raises: [], tags: [].}
func parents(path: string): string {....raises: [], tags: [].}
proc parts(path: string): seq[string] {....raises: [ValueError, OSError], tags: [].}
func path_splitted(path: string): tuple[dir, name, ext: string] {....raises: [],
    tags: [].}
func paths_quoted(paths: openArray[string]): string {....raises: [], tags: [].}
proc read_bytes(path: string): string {....raises: [IOError], tags: [ReadIOEffect].}
proc rename(source, destination: string) {.
    ...raises: [OSError, IOError, Exception],
    tags: [ReadDirEffect, ReadIOEffect, WriteIOEffect].}
proc replace(source, destination: string): string {.
    ...raises: [OSError, IOError, Exception],
    tags: [ReadDirEffect, ReadIOEffect, WriteIOEffect].}
func replaced(path: string; replacements: openArray[(string, string)]): string {.
    ...raises: [], tags: [].}
proc resolve(path: string): string {....raises: [ValueError, OSError], tags: [].}
proc rmdir(path: string; check: bool = false) {....raises: [OSError],
    tags: [WriteDirEffect, ReadDirEffect].}
func samefile(pathA, pathB: string): bool {....raises: [], tags: [].}
func stem(path: string): string {....raises: [], tags: [].}
func suffix(path: string): string {....raises: [], tags: [].}
proc symlink(source, destination: string) {....raises: [OSError], tags: [].}
proc tokenized(path: string): seq[tuple[token: string, isSep: bool]] {.
    ...raises: [IOError], tags: [ReadIOEffect].}
proc try_rmfile(path: string): bool {....raises: [], tags: [WriteDirEffect].}
proc walk(folderpath: string; extensions: seq[string] = @[""];
          followlinks: bool = false; yieldfiles: bool = true;
          debugs: bool = false; check_folders: bool = false;
          prealloc: Positive = 99): seq[string] {....raises: [OSError, ValueError],
    tags: [ReadDirEffect, WriteIOEffect].}
proc walk_files(globpattern: string; prealloc: Positive = 99): seq[string] {.
    ...raises: [ValueError, OSError], tags: [ReadDirEffect].}
proc walk_folders(globpattern: string; prealloc: Positive = 99): seq[string] {.
    ...raises: [ValueError, OSError], tags: [ReadDirEffect].}
proc walk_glob(globpattern: string; prealloc: Positive = 99): seq[string] {.
    ...raises: [ValueError, OSError], tags: [ReadDirEffect].}
proc walk_simple(folderpath: string; relative: bool = false;
                 check_folders: bool = false; prealloc: Positive = 99): seq[
    string] {....raises: [OSError, ValueError], tags: [ReadDirEffect].}
func with_name(path, name: string): string {....raises: [], tags: [].}
func with_stem(path, stem: string): string {....raises: [], tags: [].}
func with_suffix(path, ext: string): string {....raises: [], tags: [].}
proc write_bytes(path, data: string): string {....raises: [IOError],
    tags: [WriteIOEffect].}