Skip to main content

Easier file tree.

Project description

Easier file tree for human.
===========================

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
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.

Source Distribution

filetree-0.3.3.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

filetree-0.3.3-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for filetree-0.3.3.tar.gz
Algorithm Hash digest
SHA256 1c54abf428784bc1bf53919f29213bb240fef8d39414b348d9a99a6ec8bbd248
MD5 0443ccaf6fef7fe456ec298e40395658
BLAKE2b-256 71d263682fe757b1ff5b334254fc6ff3f2795c74967264e25e294563c07ce15a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filetree-0.3.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 848945b2ac117eac08ca6f3451e34a882314a6b725fa336d74a5aa5d023a066a
MD5 da0ce9f3a6527f34e78af300a08be709
BLAKE2b-256 15063315bd4e2d722c523dad3e084d019a7c0f24273e5fd6f226b3902ff342b8

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