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
ModelZoo
ResNet50_tensorflow
Commits
e26a6daa
"tools/python/vscode:/vscode.git/clone" did not exist on "ec150f8d88fd53f86d412b3b0213b228fd0e67c0"
Commit
e26a6daa
authored
Mar 03, 2017
by
Vadim Markovtsev
Browse files
Swivel: fastprep: try to create the missing directory
parent
89bccc63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
swivel/fastprep.cc
swivel/fastprep.cc
+5
-4
No files found.
swivel/fastprep.cc
View file @
e26a6daa
...
@@ -590,10 +590,11 @@ int main(int argc, char *argv[]) {
...
@@ -590,10 +590,11 @@ int main(int argc, char *argv[]) {
struct
stat
sb
;
struct
stat
sb
;
if
(
lstat
(
output_dirname
.
c_str
(),
&
sb
)
!=
0
||
!
S_ISDIR
(
sb
.
st_mode
))
{
if
(
lstat
(
output_dirname
.
c_str
(),
&
sb
)
!=
0
||
!
S_ISDIR
(
sb
.
st_mode
))
{
std
::
cerr
<<
"output directory '"
<<
output_dirname
if
(
mkdir
(
output_dirname
.
c_str
(),
0755
)
!=
0
)
{
<<
"' does not exist of is not a directory."
<<
std
::
endl
;
std
::
cerr
<<
"output directory '"
<<
output_dirname
<<
"' does not exist or is not a directory."
<<
std
::
endl
;
return
1
;
return
1
;
}
}
}
if
(
lstat
(
input_filename
.
c_str
(),
&
sb
)
!=
0
||
!
S_ISREG
(
sb
.
st_mode
))
{
if
(
lstat
(
input_filename
.
c_str
(),
&
sb
)
!=
0
||
!
S_ISREG
(
sb
.
st_mode
))
{
...
...
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