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
30995c07
Commit
30995c07
authored
Oct 19, 2010
by
rfkelly0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S3FS: include etag in getinfo() output
parent
80aa5c08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
fs/s3fs.py
+2
-0
No files found.
fs/s3fs.py
View file @
30995c07
...
@@ -442,6 +442,8 @@ class S3FS(FS):
...
@@ -442,6 +442,8 @@ class S3FS(FS):
info
[
"st_mode"
]
=
0700
|
statinfo
.
S_IFREG
info
[
"st_mode"
]
=
0700
|
statinfo
.
S_IFREG
if
hasattr
(
key
,
"size"
):
if
hasattr
(
key
,
"size"
):
info
[
'size'
]
=
int
(
key
.
size
)
info
[
'size'
]
=
int
(
key
.
size
)
if
hasattr
(
key
,
"md5"
):
info
[
'etag'
]
=
key
.
md5
if
hasattr
(
key
,
"last_modified"
):
if
hasattr
(
key
,
"last_modified"
):
# TODO: does S3 use any other formats?
# TODO: does S3 use any other formats?
fmt
=
"
%
a,
%
d
%
b
%
Y
%
H:
%
M:
%
S
%
Z"
fmt
=
"
%
a,
%
d
%
b
%
Y
%
H:
%
M:
%
S
%
Z"
...
...
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