mirror of
				https://github.com/9001/copyparty.git
				synced 2025-11-04 05:43:17 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					c4083a2942 | ||
| 
						 | 
					36c20bbe53 | 
@@ -1,6 +1,6 @@
 | 
				
			|||||||
# coding: utf-8
 | 
					# coding: utf-8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
VERSION = (1, 2, 5)
 | 
					VERSION = (1, 2, 6)
 | 
				
			||||||
CODENAME = "ftp btw"
 | 
					CODENAME = "ftp btw"
 | 
				
			||||||
BUILD_DT = (2022, 4, 15)
 | 
					BUILD_DT = (2022, 4, 15)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2075,7 +2075,8 @@ class Up2k(object):
 | 
				
			|||||||
                try:
 | 
					                try:
 | 
				
			||||||
                    bos.utime(path, times, False)
 | 
					                    bos.utime(path, times, False)
 | 
				
			||||||
                except:
 | 
					                except:
 | 
				
			||||||
                    self.log("lmod: failed to utime ({}, {})".format(path, times))
 | 
					                    m = "lmod: failed to utime ({}, {}):\n{}"
 | 
				
			||||||
 | 
					                    self.log(m.format(path, times, min_ex()))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if self.args.sparse and self.args.sparse * 1024 * 1024 <= sz:
 | 
					                if self.args.sparse and self.args.sparse * 1024 * 1024 <= sz:
 | 
				
			||||||
                    try:
 | 
					                    try:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -67,7 +67,7 @@ if WINDOWS and PY2:
 | 
				
			|||||||
    FS_ENCODING = "utf-8"
 | 
					    FS_ENCODING = "utf-8"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SYMTIME = sys.version_info >= (3, 6) and os.supports_follow_symlinks
 | 
					SYMTIME = sys.version_info >= (3, 6) and os.utime in os.supports_follow_symlinks
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HTTP_TS_FMT = "%a, %d %b %Y %H:%M:%S GMT"
 | 
					HTTP_TS_FMT = "%a, %d %b %Y %H:%M:%S GMT"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1235,7 +1235,7 @@ def statdir(logger, scandir, lstat, top):
 | 
				
			|||||||
    if lstat and ANYWIN:
 | 
					    if lstat and ANYWIN:
 | 
				
			||||||
        lstat = False
 | 
					        lstat = False
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if lstat and not os.supports_follow_symlinks:
 | 
					    if lstat and (PY2 or os.stat not in os.supports_follow_symlinks):
 | 
				
			||||||
        scandir = False
 | 
					        scandir = False
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user