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
87a736d5
Commit
87a736d5
authored
Nov 23, 2011
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for Windows long paths in opener, and multifs fix
parent
0ae89aa3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
fs/multifs.py
+4
-4
fs/opener.py
+2
-0
No files found.
fs/multifs.py
View file @
87a736d5
...
...
@@ -94,7 +94,7 @@ class MultiFS(FS):
self
.
auto_close
=
auto_close
self
.
fs_sequence
=
[]
self
.
fs_lookup
=
{}
self
.
write
_
fs
=
None
self
.
writefs
=
None
@synchronize
def
__str__
(
self
):
...
...
@@ -112,12 +112,12 @@ class MultiFS(FS):
if
self
.
auto_close
:
for
fs
in
self
.
fs_sequence
:
fs
.
close
()
if
self
.
write
_
fs
is
not
None
:
self
.
write
_
fs
.
close
()
if
self
.
writefs
is
not
None
:
self
.
writefs
.
close
()
# Discard any references
del
self
.
fs_sequence
[:]
self
.
fs_lookup
.
clear
()
self
.
write
_
fs
=
None
self
.
writefs
=
None
super
(
MultiFS
,
self
)
.
close
()
@synchronize
...
...
fs/opener.py
View file @
87a736d5
...
...
@@ -84,6 +84,8 @@ class NoOpenerError(OpenerError):
def
_expand_syspath
(
path
):
if
path
is
None
:
return
path
if
path
.
startswith
(
'
\\\\
?
\\
'
):
path
=
path
[
4
:]
path
=
os
.
path
.
expanduser
(
os
.
path
.
expandvars
(
path
))
path
=
os
.
path
.
normpath
(
os
.
path
.
abspath
(
path
))
return
path
...
...
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