Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
farfun committed Jan 6, 2025
1 parent 8b6c8eb commit c56cd9b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 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-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
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-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
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.100"
version = "1.2.101"
description = "fundrive"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
4 changes: 4 additions & 0 deletions src/fundrive/drives/webdav/drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def login(
return True

def mkdir(self, fid, name, return_if_exist=True, *args, **kwargs) -> str:
dir_map = dict([(file.name, file.fid) for file in self.get_dir_list(fid=fid)])
if name in dir_map:
logger.info(f"name={name} exists, return fid={fid}")
return dir_map[name]
path = str(os.path.join(fid, name))
self.drive.mkdir(path=path)
return path
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 c56cd9b

Please sign in to comment.