summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbtimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f>2012-08-29 15:24:52 +0000
committerbtimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f>2012-08-29 15:24:52 +0000
commit9221889a4692994365b72939227186db45938043 (patch)
tree993da5d66300cc3f09d0c8ea5c874acf38cde988
parent1210a9721e67c52684875f931b2611bef6fe6056 (diff)
downloadpyfilesystem-9221889a4692994365b72939227186db45938043.tar.gz
Use stat() to determine mtime instead of relying on fs directly.
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@813 67cdc799-7952-0410-af00-57a81ceafa0f
-rw-r--r--fs/expose/ftp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/expose/ftp.py b/fs/expose/ftp.py
index 98d08ab..55f9ce5 100644
--- a/fs/expose/ftp.py
+++ b/fs/expose/ftp.py
@@ -67,7 +67,7 @@ class FakeStat(object):
class FTPFS(ftpserver.AbstractedFS):
"""
The basic FTP Filesystem. This is a bridge between a pyfs filesystem and pyftpdlib's
- AbstractedFS. This class will cause the FTP server to service the given fs instance.
+ AbstractedFS. This class will cause the FTP server to serve the given fs instance.
"""
encoding = 'utf8'
"Sets the encoding to use for paths."
@@ -198,7 +198,7 @@ class FTPFS(ftpserver.AbstractedFS):
@convert_fs_errors
@decode_args
def getmtime(self, path):
- return self.fs.getinfo(path).time
+ return self.stat(path).st_mtime
def realpath(self, path):
return path