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
24bae94e
Commit
24bae94e
authored
Apr 22, 2014
by
willmcgugan@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for exception message
parent
c8f36c66
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
fs/commands/fsmount.py
+3
-5
fs/s3fs.py
+10
-10
No files found.
fs/commands/fsmount.py
View file @
24bae94e
...
@@ -8,6 +8,7 @@ import os.path
...
@@ -8,6 +8,7 @@ import os.path
platform
=
platform
.
system
()
platform
=
platform
.
system
()
class
FSMount
(
Command
):
class
FSMount
(
Command
):
if
platform
==
"Windows"
:
if
platform
==
"Windows"
:
...
@@ -32,7 +33,6 @@ Mounts a file system on a system path"""
...
@@ -32,7 +33,6 @@ Mounts a file system on a system path"""
return
optparse
return
optparse
def
do_run
(
self
,
options
,
args
):
def
do_run
(
self
,
options
,
args
):
windows
=
platform
==
"Windows"
windows
=
platform
==
"Windows"
...
@@ -84,7 +84,7 @@ Mounts a file system on a system path"""
...
@@ -84,7 +84,7 @@ Mounts a file system on a system path"""
fs
,
path
=
self
.
open_fs
(
fs_url
,
create_dir
=
True
)
fs
,
path
=
self
.
open_fs
(
fs_url
,
create_dir
=
True
)
if
path
:
if
path
:
if
not
fs
.
isdir
(
path
):
if
not
fs
.
isdir
(
path
):
self
.
error
(
'
%
s is not a directory on
%
s'
%
(
fs_url
.
fs
))
self
.
error
(
'
%
s is not a directory on
%
s'
%
(
fs_url
,
fs
))
return
1
return
1
fs
=
fs
.
opendir
(
path
)
fs
=
fs
.
opendir
(
path
)
path
=
'/'
path
=
'/'
...
@@ -130,11 +130,10 @@ Mounts a file system on a system path"""
...
@@ -130,11 +130,10 @@ Mounts a file system on a system path"""
mount_path
,
mount_path
,
foreground
=
True
)
foreground
=
True
)
else
:
else
:
fs
.
close
=
lambda
:
None
fs
.
close
=
lambda
:
None
def
run
():
def
run
():
return
FSMount
()
.
run
()
return
FSMount
()
.
run
()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
sys
.
exit
(
run
())
sys
.
exit
(
run
())
\ No newline at end of file
fs/s3fs.py
View file @
24bae94e
...
@@ -59,17 +59,17 @@ class S3FS(FS):
...
@@ -59,17 +59,17 @@ class S3FS(FS):
or flushed.
or flushed.
"""
"""
_meta
=
{
'thread_safe'
:
True
,
_meta
=
{
'thread_safe'
:
True
,
'virtual'
:
False
,
'virtual'
:
False
,
'read_only'
:
False
,
'read_only'
:
False
,
'unicode_paths'
:
True
,
'unicode_paths'
:
True
,
'case_insensitive_paths'
:
False
,
'case_insensitive_paths'
:
False
,
'network'
:
True
,
'network'
:
True
,
'atomic.move'
:
True
,
'atomic.move'
:
True
,
'atomic.copy'
:
True
,
'atomic.copy'
:
True
,
'atomic.makedir'
:
True
,
'atomic.makedir'
:
True
,
'atomic.rename'
:
False
,
'atomic.rename'
:
False
,
'atomic.setconetns'
:
True
'atomic.setcontent'
:
True
}
}
class
meta
:
class
meta
:
...
...
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