Represent a filesystem item such as a file or folder
Project description
libfile
Libfile.
This module offers a class that combines pathlib.Path, os.walk, cached os.struct_stat, debug/trace logging, and the ability to execute a --dry-run through 'most' of the code without changing the filesystem.
File(object) represents a filesystem item, such as a file or folder, which may or may not exist when the object is initialized. This differs from os.DirEntry(object), which is only instantiated for an existing item.
File has nothing to do with input/output... yet.
For you old unix cats like me, a 'folder' is a 'directory', and this module enjoys the 50% reduction in the number of syllables required, the 3-fewer keystrokes for singular, 4 for plural, and non-collision with python built-in 'dir'. Embrace the technology!
class File
Represent a filesystem item such as a file or folder.
The path argument to the constructor, and other methods that take a path argument, accept either a string, or an object implementing the os.PathLike interface which returns a string, or another path object.
See: https://docs.python.org/3/library/pathlib.html#pure-paths
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rlane_libfile-1.0.5.tar.gz.
File metadata
- Download URL: rlane_libfile-1.0.5.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afcf094a088756f5822e980667045c34204c53ac7ce82aa3db5f9cb7a60532f6
|
|
| MD5 |
5149f33558ac035abe0388e2222b3c6e
|
|
| BLAKE2b-256 |
73af888258259fc32ed585ca28f6d1a06bc5c630014eafbc7e55652ec48591aa
|
File details
Details for the file rlane_libfile-1.0.5-py3-none-any.whl.
File metadata
- Download URL: rlane_libfile-1.0.5-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52cee90091f1d90c164a77367b36c9955522a08e439a81acbec637c9dc7293fc
|
|
| MD5 |
7813e8a5246ba8e0406f8398b32df904
|
|
| BLAKE2b-256 |
17ab23bd35c207a567452db650d09e4b58c41e8e03d91bcd5b4254f68ccbc5fb
|