Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Caren Kresse
callgraph
Commits
9c4c5617
Commit
9c4c5617
authored
May 13, 2021
by
Carsten Emde
Browse files
Fixed another problem in the skipdirs code
parent
309927e5
Changes
1
Show whitespace changes
Inline
Side-by-side
generatecypher.py
View file @
9c4c5617
...
...
@@ -464,9 +464,6 @@ def main(argv):
skipdirs
+=
','
+
defaultskipdirs
skipdirs
=
skipdirs
.
split
(
','
)
print
(
"Info: Skipping directories %s"
%
(
skipdirs
))
for
s
in
skipdirs
:
if
not
s
.
endswith
(
'/'
):
skipdirs
[
skipdirs
.
index
(
s
)]
+=
'/'
for
dirtoscan
in
dirstoscan
:
# store the length of the top level directory, as everything
...
...
@@ -480,9 +477,14 @@ def main(argv):
dirwalker
=
os
.
walk
(
dirtoscan
)
for
root
,
dirs
,
files
in
os
.
walk
(
dirtoscan
,
topdown
=
True
):
try
:
[
dirs
.
remove
(
d
)
for
d
in
list
(
dirs
)
for
s
in
skipdirs
if
root
.
startswith
(
s
)]
except
:
mustskip
=
False
for
s
in
skipdirs
:
if
root
.
startswith
(
s
+
'/'
)
or
root
==
s
:
for
d
in
dirs
:
dirs
.
remove
(
d
)
mustskip
=
True
break
if
mustskip
:
continue
for
filename
in
files
:
fullfilename
=
os
.
path
.
join
(
root
,
filename
)
...
...
Write
Preview
Supports
Markdown
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