osfs
⚓︎
Os specific filesystem utils/operations
Classes:
-
OsFsAbc–Abstract base class for OS-specific symlink operations
-
LIN–Linux (and Mac) shell commands/methods container
-
WIN–Windows shell commands/methods container
OsFsAbc
⚓︎
Bases: ABC
Abstract base class for OS-specific symlink operations
Implemented by LIN (linux/mac) and WIN (windows); all members are static methods, so the subclasses are used as namespaces rather than instantiated.
Methods:
-
link_dir–Make a directory symlink
-
link_dirs–Make multiple directory symlinks
-
link_file–Make a file symlink
-
link_files–Make multiple file symlinks
-
unlink_dir–Unlink a directory symlink
-
unlink_dirs–Unlink multiple directory symlinks
-
unlink_file–Unlink a file symlink
-
unlink_files–Unlink multiple file symlinks
LIN
⚓︎
Bases: OsFsAbc
Linux (and Mac) shell commands/methods container
Methods:
-
link_dir–Make a directory symlink
-
link_dirs–Make multiple directory symlinks
-
link_file–Make a file symlink
-
link_files–Make multiple file symlinks
-
unlink_dir–Unlink a directory symlink given a path to the symlink
-
unlink_dirs–Unlink directory symlinks given the paths the links
-
unlink_file–Unlink a file symlink given a path to the symlink
-
unlink_files–Unlink directory symlinks given the paths the links
WIN
⚓︎
Bases: OsFsAbc
Windows shell commands/methods container
Methods:
-
link_dir–Make a directory symlink
-
link_dirs–Make multiple directory symlinks
-
link_file–Make a file symlink
-
link_files–Make multiple file symlinks
-
unlink_dir–Unlink a directory symlink given a path to the symlink
-
unlink_dirs–Unlink directory symlinks given the paths the links
-
unlink_file–Unlink a file symlink given a path to the symlink
-
unlink_files–Unlink directory symlinks given the paths the links