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
2710ade8
Commit
2710ade8
authored
May 26, 2011
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for missing size field
parent
90f59973
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
fs/opener.py
+4
-1
No files found.
fs/opener.py
View file @
2710ade8
...
@@ -350,7 +350,7 @@ class OSFSOpener(Opener):
...
@@ -350,7 +350,7 @@ class OSFSOpener(Opener):
class
ZipOpener
(
Opener
):
class
ZipOpener
(
Opener
):
names
=
[
'zip'
,
'zip64'
]
names
=
[
'zip'
,
'zip64'
]
desc
=
"""Opens zip files. Use zip64 for > 2
me
gabyte zip files, if you have a 64 bit processor.
desc
=
"""Opens zip files. Use zip64 for > 2
gi
gabyte zip files, if you have a 64 bit processor.
examples:
examples:
* zip://myzip.zip (open a local zip file)
* zip://myzip.zip (open a local zip file)
...
@@ -370,6 +370,9 @@ class ZipOpener(Opener):
...
@@ -370,6 +370,9 @@ class ZipOpener(Opener):
open_mode
=
'rb'
open_mode
=
'rb'
else
:
else
:
open_mode
=
'w+'
open_mode
=
'w+'
if
zip_fs
.
hassyspath
(
zip_path
):
zip_file
=
zip_fs
.
getsyspath
(
zip_path
)
else
:
zip_file
=
zip_fs
.
open
(
zip_path
,
mode
=
open_mode
)
zip_file
=
zip_fs
.
open
(
zip_path
,
mode
=
open_mode
)
_username
,
_password
,
fs_path
=
_parse_credentials
(
fs_path
)
_username
,
_password
,
fs_path
=
_parse_credentials
(
fs_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