fix: 修几个错误,增加gitignore

pull/3/head
zanllp 2023-03-22 20:58:55 +08:00
parent 867c54fd84
commit 843399e95a
4 changed files with 33 additions and 1 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
BaiduPCS-Go*
*.log
__pycache__

View File

@ -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)

View File

@ -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

27
vue/.gitignore vendored Normal file
View File

@ -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?