The Filesystem module provides a simple method to access files
Bases: collections.defaultdict
GameDir is a class for reading an entire directory and providing a consistent mechanism for accessing this directory’s content.
Usage of filesystem is simple:
#!/usr/bin/env python
# Simple example of filesystem usage.
import filesystem
# Paths can be in unix or windows format.
dir = filesystem.GameDir.GameDir("/example/dir/")
file = dir['file'] # Open 'file' in /example/dir/
subfile = dir['sub/fi/le'] # open le in /example/dir/fi/
# Thats it!, you can read() from these files or do any other
# file object things with them(since they are just file objects).