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
zhougaofeng
magic_pdf
Commits
f0722376
Commit
f0722376
authored
Nov 15, 2024
by
zhougaofeng
Browse files
Update common_parse.py
parent
c9d53e7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/parse/common_parse.py
magic_pdf/parse/common_parse.py
+1
-1
No files found.
magic_pdf/parse/common_parse.py
View file @
f0722376
...
@@ -74,7 +74,7 @@ def determine_output_dir(output_dir):
...
@@ -74,7 +74,7 @@ def determine_output_dir(output_dir):
def
process_input
(
input_path
,
output_dir
):
def
process_input
(
input_path
,
output_dir
):
"""Process the input path, which can be a directory or a single file."""
"""Process the input path, which can be a directory or a single file."""
if
os
.
path
.
isdir
(
input_path
):
if
os
.
path
.
isdir
(
input_path
):
logger
.
info
(
f
'开始处理
{
input_path
}
目录下的文件'
)
logger
.
info
(
f
'开始处理
【
{
input_path
}
】
目录下的文件'
)
for
root
,
_
,
files
in
os
.
walk
(
input_path
):
for
root
,
_
,
files
in
os
.
walk
(
input_path
):
for
file
in
files
:
for
file
in
files
:
file_path
=
os
.
path
.
join
(
root
,
file
)
file_path
=
os
.
path
.
join
(
root
,
file
)
...
...
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