log fullpath
This commit is contained in:
@@ -602,7 +602,7 @@ def load_cookies(filename):
|
|||||||
cookies_filename = None
|
cookies_filename = None
|
||||||
for p in path_search_order:
|
for p in path_search_order:
|
||||||
if os.path.exists(p):
|
if os.path.exists(p):
|
||||||
cookies_filename = p
|
cookies_filename = os.path.abspath(p)
|
||||||
break
|
break
|
||||||
if not cookies_filename:
|
if not cookies_filename:
|
||||||
return None, None
|
return None, None
|
||||||
|
|||||||
4
core.py
4
core.py
@@ -29,14 +29,14 @@ def moveFailedFolder(filepath, conf):
|
|||||||
# 模式3或软连接,改为维护一个失败列表,启动扫描时加载用于排除该路径,以免反复处理
|
# 模式3或软连接,改为维护一个失败列表,启动扫描时加载用于排除该路径,以免反复处理
|
||||||
# 原先的创建软连接到失败目录,并不直观,不方便找到失败文件位置,不如直接记录该文件路径
|
# 原先的创建软连接到失败目录,并不直观,不方便找到失败文件位置,不如直接记录该文件路径
|
||||||
if conf.main_mode() == 3 or soft_link:
|
if conf.main_mode() == 3 or soft_link:
|
||||||
ftxt = os.path.join(failed_folder, 'failed_list.txt')
|
ftxt = os.path.abspath(os.path.join(failed_folder, 'failed_list.txt'))
|
||||||
print("[-]Add to Failed List file, see '%s'" % ftxt)
|
print("[-]Add to Failed List file, see '%s'" % ftxt)
|
||||||
with open(ftxt, 'a', encoding='utf-8') as flt:
|
with open(ftxt, 'a', encoding='utf-8') as flt:
|
||||||
flt.write(f'{filepath}\n')
|
flt.write(f'{filepath}\n')
|
||||||
flt.close()
|
flt.close()
|
||||||
elif conf.failed_move() and not soft_link:
|
elif conf.failed_move() and not soft_link:
|
||||||
failed_name = os.path.join(failed_folder, os.path.basename(filepath))
|
failed_name = os.path.join(failed_folder, os.path.basename(filepath))
|
||||||
mtxt = os.path.join(failed_folder, 'where_was_i_before_being_moved.txt')
|
mtxt = os.path.abspath(os.path.join(failed_folder, 'where_was_i_before_being_moved.txt'))
|
||||||
print("'[-]Move to Failed output folder, see '%s'" % mtxt)
|
print("'[-]Move to Failed output folder, see '%s'" % mtxt)
|
||||||
with open(mtxt, 'a', encoding='utf-8') as wwibbmt:
|
with open(mtxt, 'a', encoding='utf-8') as wwibbmt:
|
||||||
tmstr = datetime.now().strftime("%Y-%m-%d %H:%M")
|
tmstr = datetime.now().strftime("%Y-%m-%d %H:%M")
|
||||||
|
|||||||
Reference in New Issue
Block a user