Commit bd9f0a9c by willmcgugan

Some documentation

parent bec7b020
#!/usr/bin/env python #!/usr/bin/env python
"""
Creates a window which can be used to browse the contents of a filesystem.
To use, call the 'browse' method with a filesystem object. Double click a file
or directory to display its properties.
Requires wxPython.
"""
import wx import wx
import wx.gizmos import wx.gizmos
......
"""Contains a number of standalone functions for path manipulation."""
from itertools import chain from itertools import chain
def isabsolutepath(path): def isabsolutepath(path):
......
#!/usr/bin/env python #!/usr/bin/env python
"""
A filesystem that exists only in memory, which obviously makes it very fast.
"""
import os import os
import datetime import datetime
from fs import _iteratepath from fs import _iteratepath
......
...@@ -6,6 +6,8 @@ from memoryfs import MemoryFS ...@@ -6,6 +6,8 @@ from memoryfs import MemoryFS
class MountFS(FS): class MountFS(FS):
"""A filesystem that delegates to other filesystems."""
class DirMount(object): class DirMount(object):
def __init__(self, path, fs): def __init__(self, path, fs):
self.path = path self.path = path
......
...@@ -4,6 +4,11 @@ from fs import * ...@@ -4,6 +4,11 @@ from fs import *
class OSFS(FS): class OSFS(FS):
"""The most basic of filesystems. Simply shadows the underlaying filesytem
of the Operating System.
"""
def __init__(self, root_path, thread_syncronize=True): def __init__(self, root_path, thread_syncronize=True):
FS.__init__(self, thread_syncronize=thread_syncronize) FS.__init__(self, thread_syncronize=thread_syncronize)
......
"""Contains a number of high level utility functions for working with FS objects."""
import shutil import shutil
def copy_file(src_fs, src_path, dst_fs, dst_path, chunk_size=1024*16): def copy_file(src_fs, src_path, dst_fs, dst_path, chunk_size=1024*16):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment