splitlog 4.1.3__tar.gz → 4.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {splitlog-4.1.3 → splitlog-4.1.4}/PKG-INFO +1 -1
- {splitlog-4.1.3 → splitlog-4.1.4}/pyproject.toml +1 -1
- {splitlog-4.1.3 → splitlog-4.1.4}/splitlog/outputfolder.py +10 -4
- {splitlog-4.1.3 → splitlog-4.1.4}/LICENSE +0 -0
- {splitlog-4.1.3 → splitlog-4.1.4}/README.md +0 -0
- {splitlog-4.1.3 → splitlog-4.1.4}/splitlog/__init__.py +0 -0
- {splitlog-4.1.3 → splitlog-4.1.4}/splitlog/__main__.py +0 -0
|
@@ -123,7 +123,12 @@ class DefaultLocalFilesystemOutputFolder(OutputFolder):
|
|
|
123
123
|
|
|
124
124
|
def create(self, path: Path) -> BinWriter:
|
|
125
125
|
real_path = self._check_paths(path)
|
|
126
|
-
|
|
126
|
+
f = open(real_path, "xb")
|
|
127
|
+
try:
|
|
128
|
+
return FileWrapper(f)
|
|
129
|
+
except Exception:
|
|
130
|
+
f.close()
|
|
131
|
+
raise
|
|
127
132
|
|
|
128
133
|
@property
|
|
129
134
|
def root(self) -> Path:
|
|
@@ -162,9 +167,10 @@ class LinuxLocalFilesystemOutputFolder(OutputFolder):
|
|
|
162
167
|
return True
|
|
163
168
|
|
|
164
169
|
def __init__(self, path: Path):
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
170
|
+
if not self.is_supported():
|
|
171
|
+
raise RuntimeError(
|
|
172
|
+
"File system semantics are not supported by runtime environment"
|
|
173
|
+
)
|
|
168
174
|
self._path: Path = path.resolve()
|
|
169
175
|
self._dir_fd: t.Union[int, None] = None
|
|
170
176
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|