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
1e7cddbc
Commit
1e7cddbc
authored
Aug 29, 2012
by
btimby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use stat() to determine mtime instead of relying on fs directly.
parent
54e3e133
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/expose/ftp.py
+2
-2
No files found.
fs/expose/ftp.py
View file @
1e7cddbc
...
@@ -67,7 +67,7 @@ class FakeStat(object):
...
@@ -67,7 +67,7 @@ class FakeStat(object):
class
FTPFS
(
ftpserver
.
AbstractedFS
):
class
FTPFS
(
ftpserver
.
AbstractedFS
):
"""
"""
The basic FTP Filesystem. This is a bridge between a pyfs filesystem and pyftpdlib's
The basic FTP Filesystem. This is a bridge between a pyfs filesystem and pyftpdlib's
AbstractedFS. This class will cause the FTP server to serv
ic
e the given fs instance.
AbstractedFS. This class will cause the FTP server to serve the given fs instance.
"""
"""
encoding
=
'utf8'
encoding
=
'utf8'
"Sets the encoding to use for paths."
"Sets the encoding to use for paths."
...
@@ -198,7 +198,7 @@ class FTPFS(ftpserver.AbstractedFS):
...
@@ -198,7 +198,7 @@ class FTPFS(ftpserver.AbstractedFS):
@convert_fs_errors
@convert_fs_errors
@decode_args
@decode_args
def
getmtime
(
self
,
path
):
def
getmtime
(
self
,
path
):
return
self
.
fs
.
getinfo
(
path
)
.
time
return
self
.
stat
(
path
)
.
st_m
time
def
realpath
(
self
,
path
):
def
realpath
(
self
,
path
):
return
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