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-pipeline
csst_common
Commits
8d015c91
Commit
8d015c91
authored
Nov 21, 2022
by
BO ZHANG
🏀
Browse files
in case symbolic link directories
parent
0a19af72
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
8d015c91
...
@@ -584,13 +584,14 @@ class CsstMsDataManager:
...
@@ -584,13 +584,14 @@ class CsstMsDataManager:
dfs_root
=
"/dfsroot"
dfs_root
=
"/dfsroot"
# (clear and) make directories
# (clear and) make directories
os
.
chdir
(
os
.
getenv
(
"HOME"
))
# in case cwd is in dir_l0 or dir_l1
if
os
.
path
.
exists
(
dir_l0
):
if
os
.
path
.
exists
(
dir_l0
):
os
.
system
(
f
"rm -rf
{
dir_l0
}
"
)
os
.
system
(
f
"rm -rf
{
dir_l0
}
/*"
)
else
:
os
.
mkdir
(
dir_l0
)
if
os
.
path
.
exists
(
dir_l1
):
if
os
.
path
.
exists
(
dir_l1
):
os
.
system
(
f
"rm -rf
{
dir_l1
}
"
)
os
.
system
(
f
"rm -rf
{
dir_l1
}
/*
"
)
os
.
mkdir
(
dir_l0
)
else
:
os
.
mkdir
(
dir_l1
)
os
.
mkdir
(
dir_l1
)
print
(
"Making symbolic links ..."
)
print
(
"Making symbolic links ..."
)
for
i_rec
in
range
(
len
(
tbl
)):
for
i_rec
in
range
(
len
(
tbl
)):
...
...
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