fix: 修几个错误,增加gitignore
parent
867c54fd84
commit
843399e95a
|
|
@ -0,0 +1,3 @@
|
|||
BaiduPCS-Go*
|
||||
*.log
|
||||
__pycache__
|
||||
|
|
@ -229,6 +229,8 @@ def baidu_netdisk_api(_: Any, app: FastAPI):
|
|||
else:
|
||||
for item in os.listdir(folder_path):
|
||||
path = os.path.join(folder_path, item)
|
||||
if not os.path.exists(path):
|
||||
continue
|
||||
mod_time = os.path.getmtime(path)
|
||||
date = time.strftime(
|
||||
"%Y-%m-%d %H:%M:%S", time.localtime(mod_time)
|
||||
|
|
|
|||
|
|
@ -49,4 +49,4 @@ def convert_to_bytes(file_size_str):
|
|||
|
||||
is_dev = "APP_ENV" in os.environ and os.environ["APP_ENV"] == "dev"
|
||||
cwd = os.path.normpath(os.path.join(__file__, "../../"))
|
||||
is_win = platform.system().lower().find("win") != -1
|
||||
is_win = platform.system().lower().find("windows") != -1
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
.DS_Store
|
||||
dist-ssr
|
||||
coverage
|
||||
*.local
|
||||
|
||||
/cypress/videos/
|
||||
/cypress/screenshots/
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
Loading…
Reference in New Issue