summaryrefslogtreecommitdiff
path: root/fs/base.py
diff options
context:
space:
mode:
authorwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2011-05-26 10:52:23 +0000
committerwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2011-05-26 10:52:23 +0000
commit27cf16248a293ce1da1773ca87717c676003d76e (patch)
tree88c28f7e34e3089e4a70bb470491e739f40fc03b /fs/base.py
parentc68d276e473a7414f4aa2c8a7aba2eea5ae6f129 (diff)
downloadpyfilesystem-27cf16248a293ce1da1773ca87717c676003d76e.tar.gz
hide dotfiles fix from Andrew
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@709 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/base.py')
-rw-r--r--fs/base.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/base.py b/fs/base.py
index 4128f9f..67693b3 100644
--- a/fs/base.py
+++ b/fs/base.py
@@ -1179,10 +1179,14 @@ class FS(object):
print_fs(self, max_levels=max_levels)
tree = printtree
- def browse(self):
- """Displays the FS tree in a graphical window (requires wxPython)"""
+ def browse(self, hide_dotfiles=False):
+ """Displays the FS tree in a graphical window (requires wxPython)
+
+ :param hide_dotfiles: If True, files and folders that begin with a dot will be hidden
+
+ """
from fs.browsewin import browse
- browse(self)
+ browse(self, hide_dotfiles)
def getmmap(self, path, read_only=False, copy=False):
"""Returns a mmap object for this path.