comparison scripts/miscellaneous/tempdir.m @ 10631:10df75a24242

Add filesep to end of tempdir (bug #29864).
author Rik <octave@nomad.inbox5.com>
date Thu, 13 May 2010 12:23:06 -0700
parents eb63fbe60fab
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
10630:832732c2eb80 10631:10df75a24242
27 if (isempty (dirname)) 27 if (isempty (dirname))
28 dirname = P_tmpdir; 28 dirname = P_tmpdir;
29 endif 29 endif
30 30
31 if (! strcmp (dirname(end), filesep)) 31 if (! strcmp (dirname(end), filesep))
32 cstrcat (dirname, filesep); 32 dirname = cstrcat (dirname, filesep);
33 endif 33 endif
34 34
35 if (! isdir (dirname)) 35 if (! isdir (dirname))
36 warning ("tempdir: `%s' does not exist or is not a directory", dirname); 36 warning ("tempdir: `%s' does not exist or is not a directory", dirname);
37 endif 37 endif