mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
alphabetical up2k indexing
This commit is contained in:
parent
79c7639aaf
commit
5ded5a4516
|
@ -381,7 +381,8 @@ class Up2k(object):
|
|||
self.pp.msg = "a{} {}".format(self.pp.n, cdir)
|
||||
histdir = os.path.join(top, ".hist")
|
||||
ret = 0
|
||||
for iname, inf in statdir(self.log, not self.args.no_scandir, False, cdir):
|
||||
g = statdir(self.log, not self.args.no_scandir, False, cdir)
|
||||
for iname, inf in sorted(g):
|
||||
abspath = os.path.join(cdir, iname)
|
||||
lmod = int(inf.st_mtime)
|
||||
if stat.S_ISDIR(inf.st_mode):
|
||||
|
|
|
@ -208,6 +208,8 @@ class ProgressPrinter(threading.Thread):
|
|||
|
||||
msg = self.msg
|
||||
uprint(" {}\033[K\r".format(msg))
|
||||
if PY2:
|
||||
sys.stdout.flush()
|
||||
|
||||
print("\033[K", end="")
|
||||
sys.stdout.flush() # necessary on win10 even w/ stderr btw
|
||||
|
|
Loading…
Reference in a new issue