Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyfs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pyfs
Commits
47379906
Commit
47379906
authored
May 26, 2011
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide dotfiles fix from Andrew
parent
25df7c95
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
fs/base.py
+7
-3
fs/browsewin.py
+3
-3
fs/commands/fsinfo.py
+0
-2
No files found.
fs/base.py
View file @
47379906
...
@@ -1179,10 +1179,14 @@ class FS(object):
...
@@ -1179,10 +1179,14 @@ class FS(object):
print_fs
(
self
,
max_levels
=
max_levels
)
print_fs
(
self
,
max_levels
=
max_levels
)
tree
=
printtree
tree
=
printtree
def
browse
(
self
):
def
browse
(
self
,
hide_dotfiles
=
False
):
"""Displays the FS tree in a graphical window (requires wxPython)"""
"""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
from
fs.browsewin
import
browse
browse
(
self
)
browse
(
self
,
hide_dotfiles
)
def
getmmap
(
self
,
path
,
read_only
=
False
,
copy
=
False
):
def
getmmap
(
self
,
path
,
read_only
=
False
,
copy
=
False
):
"""Returns a mmap object for this path.
"""Returns a mmap object for this path.
...
...
fs/browsewin.py
View file @
47379906
...
@@ -183,12 +183,12 @@ def browse(fs, hide_dotfiles=False):
...
@@ -183,12 +183,12 @@ def browse(fs, hide_dotfiles=False):
object. Double-click a file/folder to display extra info.
object. Double-click a file/folder to display extra info.
:param fs: A filesystem object
:param fs: A filesystem object
:param hide_
f
otfiles: If True, files and folders that begin with a dot will be hidden
:param hide_
d
otfiles: If True, files and folders that begin with a dot will be hidden
"""
"""
app
=
wx
.
PySimpleApp
()
app
=
wx
.
PySimpleApp
()
frame
=
BrowseFrame
(
fs
,
hide_dotfiles
=
True
)
frame
=
BrowseFrame
(
fs
,
hide_dotfiles
=
hide_dotfiles
)
frame
.
Show
()
frame
.
Show
()
app
.
MainLoop
()
app
.
MainLoop
()
...
@@ -196,4 +196,4 @@ def browse(fs, hide_dotfiles=False):
...
@@ -196,4 +196,4 @@ def browse(fs, hide_dotfiles=False):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
from
osfs
import
OSFS
from
osfs
import
OSFS
home_fs
=
OSFS
(
"~/"
)
home_fs
=
OSFS
(
"~/"
)
browse
(
home_fs
)
browse
(
home_fs
,
True
)
fs/commands/fsinfo.py
View file @
47379906
...
@@ -78,4 +78,3 @@ def run():
...
@@ -78,4 +78,3 @@ def run():
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
sys
.
exit
(
run
())
sys
.
exit
(
run
())
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment