skip to navigation
skip to content

Not Logged In

FS-Hopper 0.1.0

Simple object-oriented access to a filesystem directory tree

Latest Version: 0.1.1


FS-Hopper is a simplistic and very thin abstraction layer for
accessing a filesystem directory tree in an object-oriented style.
The only two known filesystem nodes are directories and trees. Both
are implemented as new-style classes. Each method call to them (e.g.
DirectoryNode.get_childs()) will return instances of either
DirectoryNode or FileNode, allowing easy traversal throughout the

Additionally, you can define a set_root, similar to (but not really)
GNU/chroot. It is prohibited to create Nodes above set_root making it
easy for you to jail your code into a certain directory within the


Jail code into /tmp and create a working directory:

    #!/usr/bin/env python2

    import fs_hopper

    workdir = fs_hopper.Directory('/tmp/fs_hopper')
    print workdir

Recursively get all configuration files of some_app

    #!/usr/bin/env python2

    import os
    import fs_hopper

    name = os.path.expanduser('~/.config/some_app')
    confdir = fs_hopper.Directory(name)
    confs = confdir.get_subs('*.conf')
    print confs

Read /etc/passwd

    #!/usr/bin/env python2

    import fs_hopper

    passwd = fs_hopper.File('/etc/passwd')
    print passwd.get_content()


- Github:
- PyPi  :
File Type Py Version Uploaded on Size
FS-Hopper-0.1.0.tar.gz (md5) Source 2013-12-08 3KB
  • Downloads (All Versions):
  • 7 downloads in the last day
  • 46 downloads in the last week
  • 260 downloads in the last month