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
de153ba7
Commit
de153ba7
authored
Apr 03, 2019
by
Jörg Stucke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring
parent
d80ad339
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
fail_safe_file_operations.py
common_helper_files/fail_safe_file_operations.py
+0
-3
No files found.
common_helper_files/fail_safe_file_operations.py
View file @
de153ba7
...
@@ -223,8 +223,6 @@ def _iterate_path_recursively(path: Path, include_symlinks: bool = True, include
...
@@ -223,8 +223,6 @@ def _iterate_path_recursively(path: Path, include_symlinks: bool = True, include
if
path
.
is_symlink
():
if
path
.
is_symlink
():
if
include_symlinks
and
(
path
.
is_file
()
or
path
.
is_dir
()):
if
include_symlinks
and
(
path
.
is_file
()
or
path
.
is_dir
()):
yield
path
yield
path
else
:
yield
from
[]
elif
path
.
is_file
():
elif
path
.
is_file
():
yield
path
yield
path
elif
path
.
is_dir
():
elif
path
.
is_dir
():
...
@@ -234,7 +232,6 @@ def _iterate_path_recursively(path: Path, include_symlinks: bool = True, include
...
@@ -234,7 +232,6 @@ def _iterate_path_recursively(path: Path, include_symlinks: bool = True, include
yield
from
_iterate_path_recursively
(
child_path
,
include_symlinks
,
include_directories
)
yield
from
_iterate_path_recursively
(
child_path
,
include_symlinks
,
include_directories
)
except
PermissionError
:
except
PermissionError
:
logging
.
error
(
'Permission Error: could not access path {path}'
.
format
(
path
=
path
.
absolute
()))
logging
.
error
(
'Permission Error: could not access path {path}'
.
format
(
path
=
path
.
absolute
()))
yield
from
[]
except
OSError
:
except
OSError
:
logging
.
warning
(
'possible broken symlink: {path}'
.
format
(
path
=
path
.
absolute
()))
logging
.
warning
(
'possible broken symlink: {path}'
.
format
(
path
=
path
.
absolute
()))
yield
from
[]
yield
from
[]
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