feat(core): 在线版ampy上传文件时首先获取工作路径

This commit is contained in:
王立帮
2025-04-17 15:57:12 +08:00
parent f578e1a242
commit d90453ecd9
4 changed files with 24 additions and 7 deletions

View File

@@ -0,0 +1,6 @@
try:
import os
except ImportError:
import uos as os
print(os.getcwd(), end='')

View File

@@ -20,7 +20,7 @@ def check_path(path):
return 'file'
else:
return 'special file'
except OSError:
except Exception:
return 'none'
def listdir(directory):