Skip to content

Commit

Permalink
fixed nc.files.makedirs on Windows (#281)
Browse files Browse the repository at this point in the history
Reference: #280

Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 authored Aug 1, 2024
1 parent 83d712d commit 3a4f2ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [0.16.0 - 2024-08-xx]

### Fixed

- `nc.files.makedirs` not working properly on Windows. #280 Thanks to @Wuli6

## [0.15.1 - 2024-07-30]

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion nc_py_api/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version of nc_py_api."""

__version__ = "0.15.1"
__version__ = "0.16.0.dev0"
2 changes: 1 addition & 1 deletion nc_py_api/files/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def makedirs(self, path: str | FsNode, exist_ok=False) -> FsNode | None:
path = path.lstrip("/")
result = None
for i in Path(path).parts:
_path = os.path.join(_path, i)
_path = f"{_path}/{i}"
if not exist_ok:
result = self.mkdir(_path)
else:
Expand Down

0 comments on commit 3a4f2ea

Please sign in to comment.