Skip to main content

Easier file tree.

Project description

Examples:

>>> from filetree import File
>>> f = File('.')
>>> f.files
[<file: .gitignore>, <file: LICENSE>, <file: Makefile>, <file: README.rst>, <file: setup.py>]
>>> f.dirs
[<dir: .git>, <dir: build>, <dir: dist>, <dir: docs>, <dir: filetree>]
>>> f.images
[<file: python-logo.png>, <file: favicon.jpg>]

API:

__call__
__iter__
__eq__

files
dirs
images
listdir

exists
type

is_blank
is_dir
is_file
is_hidden

info
atime
ctime
mtime

move_to
remove
remove_blank_dirs
remove_blank_subdir

size
walk

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

filetree-0.3.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

filetree-0.3.2-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file filetree-0.3.2.tar.gz.

File metadata

  • Download URL: filetree-0.3.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for filetree-0.3.2.tar.gz
Algorithm Hash digest
SHA256 33b7cd99c2aed3732556294aaab9a3bfc1bb25668935660db609a72b872f183f
MD5 e446ceb7537afafb276dcf9e4bce2e55
BLAKE2b-256 970ed5c1314de44e04b2f90471d82106c0c247f995a902901a14bebaf73381e8

See more details on using hashes here.

File details

Details for the file filetree-0.3.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for filetree-0.3.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e3341a31bed3dabea51dc1262b2fe74cb92c4e247e97cf7af4f05efb0acefb7d
MD5 1c2e9821a59d13e07ac6b692ecfa3676
BLAKE2b-256 3138ee054cf595b602c800301aacc4cebfc79c4dd9c4abd9c3ac37b41c918f32

See more details on using hashes here.

Supported by

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