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
e85a0ceb
Commit
e85a0ceb
authored
Jan 11, 2011
by
rfkelly0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S3FS.get_total_size: take optional path parameter
parent
edb57234
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fs/s3fs.py
+3
-2
No files found.
fs/s3fs.py
View file @
e85a0ceb
...
@@ -575,9 +575,10 @@ class S3FS(FS):
...
@@ -575,9 +575,10 @@ class S3FS(FS):
self
.
copy
(
src
,
dst
,
overwrite
=
overwrite
)
self
.
copy
(
src
,
dst
,
overwrite
=
overwrite
)
self
.
_s3bukt
.
delete_key
(
self
.
_s3path
(
src
))
self
.
_s3bukt
.
delete_key
(
self
.
_s3path
(
src
))
def
get_total_size
(
self
):
def
get_total_size
(
self
,
path
=
""
):
"""Get total size of all files in this FS."""
"""Get total size of all files in this FS."""
return
sum
(
k
.
size
for
k
in
self
.
_s3bukt
.
list
(
prefix
=
self
.
_prefix
))
prefix
=
self
.
_s3path
(
path
)
return
sum
(
k
.
size
for
k
in
self
.
_s3bukt
.
list
(
prefix
=
prefix
))
def
_eq_utf8
(
name1
,
name2
):
def
_eq_utf8
(
name1
,
name2
):
...
...
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