Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
cbd2bf79
Commit
cbd2bf79
authored
Nov 16, 2017
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
5b75fd3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
file_util.cpp
src/ngraph/file_util.cpp
+2
-2
No files found.
src/ngraph/file_util.cpp
View file @
cbd2bf79
...
...
@@ -145,7 +145,7 @@ bool ngraph::file_util::make_directory(const string& dir)
string
ngraph
::
file_util
::
make_temp_directory
(
const
string
&
path
)
{
string
fname
=
path
.
empty
()
?
file_util
::
get_temp_directory
()
:
path
;
string
tmp_template
=
file_util
::
path_join
(
fname
,
"
aeon
XXXXXX"
);
string
tmp_template
=
file_util
::
path_join
(
fname
,
"
ngraph_
XXXXXX"
);
char
*
tmpname
=
strdup
(
tmp_template
.
c_str
());
mkdtemp
(
tmpname
);
...
...
@@ -157,7 +157,7 @@ string ngraph::file_util::make_temp_directory(const string& path)
std
::
string
ngraph
::
file_util
::
get_temp_directory
()
{
const
vector
<
string
>
potential_tmps
=
{
"
ngraph_AEON
_TMP"
,
"TMPDIR"
,
"TMP"
,
"TEMP"
,
"TEMPDIR"
};
const
vector
<
string
>
potential_tmps
=
{
"
NGRAPH
_TMP"
,
"TMPDIR"
,
"TMP"
,
"TEMP"
,
"TEMPDIR"
};
const
char
*
path
=
nullptr
;
for
(
const
string
&
var
:
potential_tmps
)
...
...
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