Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-client
Commits
707d714b
Commit
707d714b
authored
Dec 25, 2024
by
Wei Shoulin
Browse files
tips
parent
7231c507
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_client/common/fs.py
View file @
707d714b
...
...
@@ -26,7 +26,7 @@ class PosixFileStorage(FileStorage):
def
__init__
(
self
,
root
:
str
):
self
.
root
=
root
if
not
os
.
path
.
isdir
(
root
):
raise
ValueError
(
"R
oot is not a directory"
)
raise
ValueError
(
f
"
{
r
oot
}
is not a directory"
)
def
get_full_file_path
(
self
,
file_path
:
str
)
->
str
:
if
file_path
.
startswith
(
'/'
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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