Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
9fee2ce0
"docs/git@developer.sourcefind.cn:change/sglang.git" did not exist on "4c21b09074956b7a87d3a80df054241578814dfd"
Commit
9fee2ce0
authored
Apr 15, 2024
by
liukaiwen
Browse files
io modules
parent
fe58649b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
magic_pdf/io/DiskReaderWriter.py
magic_pdf/io/DiskReaderWriter.py
+2
-2
No files found.
magic_pdf/io/DiskReaderWriter.py
View file @
9fee2ce0
...
@@ -35,8 +35,8 @@ class DiskReaderWriter(AbsReaderWriter):
...
@@ -35,8 +35,8 @@ class DiskReaderWriter(AbsReaderWriter):
abspath
=
path
abspath
=
path
else
:
else
:
abspath
=
os
.
path
.
join
(
self
.
path
,
path
)
abspath
=
os
.
path
.
join
(
self
.
path
,
path
)
if
not
os
.
path
.
exists
(
abspath
)
:
directory_path
=
os
.
path
.
dirname
(
abspath
)
directory_path
=
os
.
path
.
dirname
(
abs
path
)
if
not
os
.
path
.
exists
(
directory_
path
)
:
os
.
makedirs
(
directory_path
)
os
.
makedirs
(
directory_path
)
if
mode
==
MODE_TXT
:
if
mode
==
MODE_TXT
:
with
open
(
abspath
,
"w"
,
encoding
=
self
.
encoding
)
as
f
:
with
open
(
abspath
,
"w"
,
encoding
=
self
.
encoding
)
as
f
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment