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
91aa01ff
Commit
91aa01ff
authored
Dec 03, 2021
by
Marten Ringwelski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate get_dir_of_file
parent
a6f2d22f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
fail_safe_file_operations.py
common_helper_files/fail_safe_file_operations.py
+3
-0
No files found.
common_helper_files/fail_safe_file_operations.py
View file @
91aa01ff
...
@@ -166,6 +166,9 @@ def get_dir_of_file(file_path: Union[str, Path]) -> str:
...
@@ -166,6 +166,9 @@ def get_dir_of_file(file_path: Union[str, Path]) -> str:
Returns absolute path of the directory including file
Returns absolute path of the directory including file
:param file_path: Path of the file
:param file_path: Path of the file
.. deprecated::
You should use pathlib instead of this function.
'''
'''
try
:
try
:
return
str
(
Path
(
file_path
)
.
resolve
()
.
parent
)
return
str
(
Path
(
file_path
)
.
resolve
()
.
parent
)
...
...
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