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
bd9f0a9c
Commit
bd9f0a9c
authored
Sep 19, 2008
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some documentation
parent
bec7b020
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
0 deletions
+24
-0
fs/browsewin.py
+8
-0
fs/helpers.py
+2
-0
fs/memoryfs.py
+5
-0
fs/mountfs.py
+2
-0
fs/osfs.py
+5
-0
fs/utils.py
+2
-0
No files found.
fs/browsewin.py
View file @
bd9f0a9c
#!/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.gizmos
...
...
fs/helpers.py
View file @
bd9f0a9c
"""Contains a number of standalone functions for path manipulation."""
from
itertools
import
chain
def
isabsolutepath
(
path
):
...
...
fs/memoryfs.py
View file @
bd9f0a9c
#!/usr/bin/env python
"""
A filesystem that exists only in memory, which obviously makes it very fast.
"""
import
os
import
datetime
from
fs
import
_iteratepath
...
...
fs/mountfs.py
View file @
bd9f0a9c
...
...
@@ -6,6 +6,8 @@ from memoryfs import MemoryFS
class
MountFS
(
FS
):
"""A filesystem that delegates to other filesystems."""
class
DirMount
(
object
):
def
__init__
(
self
,
path
,
fs
):
self
.
path
=
path
...
...
fs/osfs.py
View file @
bd9f0a9c
...
...
@@ -4,6 +4,11 @@ from fs import *
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
):
FS
.
__init__
(
self
,
thread_syncronize
=
thread_syncronize
)
...
...
fs/utils.py
View file @
bd9f0a9c
"""Contains a number of high level utility functions for working with FS objects."""
import
shutil
def
copy_file
(
src_fs
,
src_path
,
dst_fs
,
dst_path
,
chunk_size
=
1024
*
16
):
...
...
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