Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
farfun committed Jan 17, 2025
1 parent 3bd3fb9 commit d96fa2e
Show file tree
Hide file tree
Showing 5 changed files with 501 additions and 431 deletions.
3 changes: 3 additions & 0 deletions logs/all.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2025-01-17 10:36:09.794 |INFO | funbuild.core.core : core: 99 | funbuild | - fundrive build
2025-01-17 10:36:09.808 |INFO | funbuild.core.core : core: 84 | funbuild | - fundrive pull
2025-01-17 10:36:19.789 |INFO | funbuild.core.core : core: 89 | funbuild | - fundrive push
2025-01-17 10:59:48.340 |INFO | funbuild.core.core : core: 99 | funbuild | - fundrive build
2025-01-17 10:59:48.341 |INFO | funbuild.core.core : core: 84 | funbuild | - fundrive pull
2025-01-17 10:59:58.923 |INFO | funbuild.core.core : core: 89 | funbuild | - fundrive push
3 changes: 3 additions & 0 deletions logs/funbuild.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2025-01-17 10:36:09.794 |INFO | funbuild.core.core : core: 99 | funbuild | - fundrive build
2025-01-17 10:36:09.808 |INFO | funbuild.core.core : core: 84 | funbuild | - fundrive pull
2025-01-17 10:36:19.789 |INFO | funbuild.core.core : core: 89 | funbuild | - fundrive push
2025-01-17 10:59:48.340 |INFO | funbuild.core.core : core: 99 | funbuild | - fundrive build
2025-01-17 10:59:48.341 |INFO | funbuild.core.core : core: 84 | funbuild | - fundrive pull
2025-01-17 10:59:58.923 |INFO | funbuild.core.core : core: 89 | funbuild | - fundrive push
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "fundrive"
version = "2.0.5"
version = "2.0.6"
description = "fundrive"
readme = "README.md"
requires-python = ">=3.8"
dependencies = [ "funget>=1.0.34", "funsecret>=1.4.2", "orjson>=3.10.10", "tqdm>=4.66.5",]
dependencies = [ "funget>=1.0.34", "funsecret>=1.4.49", "orjson>=3.10.10", "tqdm>=4.67.1",]
[[project.authors]]
name = "niuliangtao"
email = "farfarfun@qq.com"
Expand Down
4 changes: 2 additions & 2 deletions src/fundrive/drives/alipan/drive_aligo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime, timedelta, timezone
from typing import Any, List, Optional

import os
from aligo import Aligo
from funsecret import read_secret
from funutil import getLogger
Expand Down Expand Up @@ -143,7 +143,7 @@ def download_file(
save_path = get_filepath(filedir, filename, filepath)
if not save_path:
raise ValueError("必须提供有效的文件保存路径")
self.drive.download_file(file_id=fid, file_path=save_path)
self.drive.download_file(file_id=fid, file_path=os.path.dirname(save_path))
return True

def upload_file(
Expand Down
Loading

0 comments on commit d96fa2e

Please sign in to comment.