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
91093534
Commit
91093534
authored
Dec 12, 2010
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed forgotten debug prints
parent
9c879d04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
fs/commands/fsmkdir.py
+1
-2
fs/utils.py
+1
-0
fs/wrapfs/subfs.py
+2
-1
No files found.
fs/commands/fsmkdir.py
View file @
91093534
...
@@ -14,8 +14,7 @@ Make a directory"""
...
@@ -14,8 +14,7 @@ Make a directory"""
def
do_run
(
self
,
options
,
args
):
def
do_run
(
self
,
options
,
args
):
for
fs_url
in
args
:
for
fs_url
in
args
:
fs
,
path
=
self
.
open_fs
(
fs_url
,
create
=
True
)
fs
,
path
=
self
.
open_fs
(
fs_url
,
create
=
True
)
print
fs
,
path
def
run
():
def
run
():
return
FSMkdir
()
.
run
()
return
FSMkdir
()
.
run
()
...
...
fs/utils.py
View file @
91093534
...
@@ -99,6 +99,7 @@ def movefile(src_fs, src_path, dst_fs, dst_path, overwrite=True, chunk_size=64*1
...
@@ -99,6 +99,7 @@ def movefile(src_fs, src_path, dst_fs, dst_path, overwrite=True, chunk_size=64*1
src
.
close
()
src
.
close
()
src_fs
.
remove
(
src_path
)
src_fs
.
remove
(
src_path
)
def
movedir
(
fs1
,
fs2
,
overwrite
=
False
,
ignore_errors
=
False
,
chunk_size
=
64
*
1024
):
def
movedir
(
fs1
,
fs2
,
overwrite
=
False
,
ignore_errors
=
False
,
chunk_size
=
64
*
1024
):
"""Moves contents of a directory from one filesystem to another.
"""Moves contents of a directory from one filesystem to another.
...
...
fs/wrapfs/subfs.py
View file @
91093534
...
@@ -38,7 +38,8 @@ class SubFS(WrapFS):
...
@@ -38,7 +38,8 @@ class SubFS(WrapFS):
def
__repr__
(
self
):
def
__repr__
(
self
):
return
str
(
self
)
return
str
(
self
)
def
desc
(
self
,
path
):
def
desc
(
self
,
path
):
#return self.wrapped_fs.desc(join(self.sub_dir, path))
desc
=
"
%
s!
%
s"
%
(
str
(
self
),
path
)
desc
=
"
%
s!
%
s"
%
(
str
(
self
),
path
)
return
desc
return
desc
...
...
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