Skip to main content

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

rlane_libfile-1.0.4.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rlane_libfile-1.0.4-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file rlane_libfile-1.0.4.tar.gz.

File metadata

  • Download URL: rlane_libfile-1.0.4.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for rlane_libfile-1.0.4.tar.gz
Algorithm Hash digest
SHA256 880c901610d7a28657a14635c8dcae220dda9738a8bc390970719b3638c85be0
MD5 e42c80eaa8b6cd79cff8ca7bff97ec51
BLAKE2b-256 3eff034f0c512ac29e03d6036779f303ba59f1ddd93fcf45307eb675799613a3

See more details on using hashes here.

File details

Details for the file rlane_libfile-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: rlane_libfile-1.0.4-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

Hashes for rlane_libfile-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b2c96f74109ccd3c6431aa98d1ecbbe7307810e3971e1558bdc1d8a5a133aec4
MD5 8469e7fbc7536d812175545fed193f40
BLAKE2b-256 9374e231833cf9f10480d062beb8390a144f1f931811c5405659c31ca63aede4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page