Merge pull request #134 from filmor/patch-1
Use environment variables to find the tmp directory
This commit is contained in:
commit
e0453faf8f
1 changed files with 8 additions and 2 deletions
|
@ -277,9 +277,15 @@ remove_recursive(Path, Options) ->
|
|||
tmp() ->
|
||||
case erlang:system_info(system_architecture) of
|
||||
"win32" ->
|
||||
"./tmp";
|
||||
case os:getenv("TEMP") of
|
||||
false -> "./tmp";
|
||||
Val -> Val
|
||||
end;
|
||||
_SysArch ->
|
||||
"/tmp"
|
||||
case os:getenv("TMPDIR") of
|
||||
false -> "/tmp";
|
||||
Val -> Val
|
||||
end
|
||||
end.
|
||||
|
||||
%% Copy the subfiles of the From directory to the to directory.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue