Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
farfun committed Jan 8, 2025
1 parent c56cd9b commit cdccdce
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
9 changes: 3 additions & 6 deletions logs/all.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
2025-01-06 16:17:49.810 |INFO | funbuild.core.core : core: 81 | funbuild | - fundrive build
2025-01-06 16:17:49.814 |INFO | funbuild.core.core : core: 69 | funbuild | - fundrive pull
2025-01-06 16:17:58.182 |INFO | funbuild.core.core : core: 73 | funbuild | - fundrive push
2025-01-06 23:22:56.994 |INFO | funbuild.core.core : core: 81 | funbuild | - fundrive build
2025-01-06 23:22:56.995 |INFO | funbuild.core.core : core: 69 | funbuild | - fundrive pull
2025-01-06 23:23:05.137 |INFO | funbuild.core.core : core: 73 | funbuild | - fundrive push
2025-01-08 11:42:35.006 |INFO | funbuild.core.core : core: 81 | funbuild | - fundrive build
2025-01-08 11:42:35.010 |INFO | funbuild.core.core : core: 69 | funbuild | - fundrive pull
2025-01-08 11:42:44.652 |INFO | funbuild.core.core : core: 73 | funbuild | - fundrive push
9 changes: 3 additions & 6 deletions logs/funbuild.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
2025-01-06 16:17:49.810 |INFO | funbuild.core.core : core: 81 | funbuild | - fundrive build
2025-01-06 16:17:49.814 |INFO | funbuild.core.core : core: 69 | funbuild | - fundrive pull
2025-01-06 16:17:58.182 |INFO | funbuild.core.core : core: 73 | funbuild | - fundrive push
2025-01-06 23:22:56.994 |INFO | funbuild.core.core : core: 81 | funbuild | - fundrive build
2025-01-06 23:22:56.995 |INFO | funbuild.core.core : core: 69 | funbuild | - fundrive pull
2025-01-06 23:23:05.137 |INFO | funbuild.core.core : core: 73 | funbuild | - fundrive push
2025-01-08 11:42:35.006 |INFO | funbuild.core.core : core: 81 | funbuild | - fundrive build
2025-01-08 11:42:35.010 |INFO | funbuild.core.core : core: 69 | funbuild | - fundrive pull
2025-01-08 11:42:44.652 |INFO | funbuild.core.core : core: 73 | funbuild | - fundrive push
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "fundrive"
version = "1.2.101"
version = "1.2.102"
description = "fundrive"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
5 changes: 4 additions & 1 deletion src/fundrive/drives/baidu/drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ def mkdir(self, fid, name, return_if_exist=True, *args, **kwargs) -> str:
logger.info(f"name={name} exists, return fid={fid}")
return dir_map[name]
path = f"{fid}/{name}"
self.drive.makedir(path)
try:
self.drive.makedir(path)
except Exception as e:
logger.error(f"makedir ({path}) error :{e}")
return path

def delete(self, fid, *args, **kwargs) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cdccdce

Please sign in to comment.