Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
6096e89e
Unverified
Commit
6096e89e
authored
Jul 10, 2020
by
SparkSnail
Committed by
GitHub
Jul 10, 2020
Browse files
Fix mkdir error (#2673)
parent
810efed3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/nni_manager/training_service/common/util.ts
src/nni_manager/training_service/common/util.ts
+3
-1
No files found.
src/nni_manager/training_service/common/util.ts
View file @
6096e89e
...
@@ -106,7 +106,9 @@ export async function execCopydir(source: string, destination: string): Promise<
...
@@ -106,7 +106,9 @@ export async function execCopydir(source: string, destination: string): Promise<
const
sourcePath
=
path
.
join
(
source
,
relPath
);
const
sourcePath
=
path
.
join
(
source
,
relPath
);
const
destPath
=
path
.
join
(
destination
,
relPath
);
const
destPath
=
path
.
join
(
destination
,
relPath
);
if
(
fs
.
statSync
(
sourcePath
).
isDirectory
())
{
if
(
fs
.
statSync
(
sourcePath
).
isDirectory
())
{
await
fs
.
promises
.
mkdir
(
destPath
);
if
(
!
fs
.
existsSync
(
destPath
))
{
await
fs
.
promises
.
mkdir
(
destPath
);
}
}
else
{
}
else
{
await
fs
.
promises
.
copyFile
(
sourcePath
,
destPath
);
await
fs
.
promises
.
copyFile
(
sourcePath
,
destPath
);
}
}
...
...
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