Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
common_helper_files
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
common_helper_files
Commits
8e6ce1cc
Commit
8e6ce1cc
authored
Dec 03, 2021
by
Marten Ringwelski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_dirs_in_dir: Invert logic
parent
967ec218
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
fail_safe_file_operations.py
common_helper_files/fail_safe_file_operations.py
+1
-2
No files found.
common_helper_files/fail_safe_file_operations.py
View file @
8e6ce1cc
...
...
@@ -152,8 +152,7 @@ def get_dirs_in_dir(directory_path: Union[str, Path]) -> List[str]:
try
:
path
=
Path
(
directory_path
)
for
item
in
path
.
iterdir
():
if
not
Path
(
item
)
.
is_dir
():
continue
if
Path
(
item
)
.
is_dir
():
result
.
append
(
str
(
item
.
resolve
()))
except
Exception
as
exc
:
logging
.
error
(
f
'Could not get directories: {exc}'
,
exc_info
=
True
)
...
...
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