INNER CODE UNIT · Python
FileML
AutoAnimeMV-Teams/AutoAnimeMv · AutoAnimeMv.py:207
def FileML(src,dst):
global TgBotMsgData
if USELINK == True:
try:
link(src,dst)
Auxiliary_Log(f'Link-{dst} << {src}','INFO')
except OSError as err:
if '[WinError 1]' in str(err):
Auxiliary_Log('当前文件系统不支持硬链接','ERROR')
if LINKFAILSUSEMOVEFLAGS == True:
move(src,dst)
Auxiliary_Log(f'Move-{src} << {dst}')
else:
Auxiliary_Exit(err)
else:
move(src,dst)
Auxiliary_Log(f'Move-{dst} << {src}')