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

Hisotry

0.3.4

add parent path function;

0.3.3

support python in operator.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for filetree, version 0.3.5
Filename, size File type Python version Upload date Hashes
Filename, size filetree-0.3.5-py2.py3-none-any.whl (5.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size filetree-0.3.5.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page