Skip to content

Commit 3a4f2ea

Browse files
authored
fixed nc.files.makedirs on Windows (#281)
Reference: #280 Signed-off-by: Alexander Piskun <[email protected]>
1 parent 83d712d commit 3a4f2ea

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

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

5+
## [0.16.0 - 2024-08-xx]
6+
7+
### Fixed
8+
9+
- `nc.files.makedirs` not working properly on Windows. #280 Thanks to @Wuli6
10+
511
## [0.15.1 - 2024-07-30]
612

713
### Fixed

nc_py_api/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Version of nc_py_api."""
22

3-
__version__ = "0.15.1"
3+
__version__ = "0.16.0.dev0"

nc_py_api/files/files.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def makedirs(self, path: str | FsNode, exist_ok=False) -> FsNode | None:
174174
path = path.lstrip("/")
175175
result = None
176176
for i in Path(path).parts:
177-
_path = os.path.join(_path, i)
177+
_path = f"{_path}/{i}"
178178
if not exist_ok:
179179
result = self.mkdir(_path)
180180
else:

0 commit comments

Comments
 (0)