polymerist.genutils.fileutils.filetree
Tools for manipulating files and directories in the file system
Attributes
Classes
Concrete implementation of pathlib Paths as nodes in a tree |
Functions
|
Replacement for os.startfile() functionality, since none natively exists in Linux |
|
Context manager for temporarily changing the current working directory of code wrapped in a "with" block |
|
Recursively clear contents of a directory at the given path (depth-first) |
Module Contents
- class polymerist.genutils.fileutils.filetree.PathToNodeCorrespondence[source]
Bases:
polymerist.genutils.trees.treebase.NodeCorrespondenceConcrete implementation of pathlib Paths as nodes in a tree
- polymerist.genutils.fileutils.filetree.dir_tree
- polymerist.genutils.fileutils.filetree.startfile(path: pathlib.Path) None[source]
Replacement for os.startfile() functionality, since none natively exists in Linux