]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Add get_pathinfo.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 28 Dec 2015 20:07:55 +0000 (20:07 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Mon, 25 Jan 2016 15:54:28 +0000 (15:54 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/scripts/backupdb.py
src/allmydata/util/fileutil.py

index e859597cffc0a5508c44eba5d658d68a2a045869..33aa952e60dae5000b29519239f8362b3cf9ae8e 100644 (file)
@@ -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]
index 185e3fa44aeafea7503ac86b0d33c71cb747a2fd..0366daabf694ec9831eddfb7ae8c25dda0aed8d5 100644 (file)
@@ -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