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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

Supported by

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