From: Daira Hopwood Date: Mon, 28 Dec 2015 20:07:55 +0000 (+0000) Subject: Add get_pathinfo. X-Git-Url: https://git.rkrishnan.org/%5B/frontends/flags/rgr-080307.php?a=commitdiff_plain;h=c54529ee7839f108b32ad7e2ac34e952e95cda44;p=tahoe-lafs%2Ftahoe-lafs.git Add get_pathinfo. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/scripts/backupdb.py b/src/allmydata/scripts/backupdb.py index e859597c..33aa952e 100644 --- a/src/allmydata/scripts/backupdb.py +++ b/src/allmydata/scripts/backupdb.py @@ -174,7 +174,7 @@ class BackupDB_v2: path = abspath_expanduser_unicode(path) - # XXX consider using get_pathinfo + # TODO: consider using get_pathinfo. s = os.stat(path) size = s[stat.ST_SIZE] ctime = s[stat.ST_CTIME] diff --git a/src/allmydata/util/fileutil.py b/src/allmydata/util/fileutil.py index 185e3fa4..0366daab 100644 --- a/src/allmydata/util/fileutil.py +++ b/src/allmydata/util/fileutil.py @@ -11,11 +11,6 @@ if sys.platform == "win32": create_unicode_buffer, get_last_error from ctypes.wintypes import BOOL, DWORD, LPCWSTR, LPWSTR, LPVOID, HANDLE -if sys.platform == "win32": - from ctypes import WINFUNCTYPE, WinError, windll, POINTER, byref, c_ulonglong, \ - create_unicode_buffer, get_last_error - from ctypes.wintypes import BOOL, DWORD, LPCWSTR, LPWSTR - from twisted.python import log from pycryptopp.cipher.aes import AES