Mercurial > hg > octave-nkf
diff scripts/miscellaneous/fullfile.m @ 5595:83df01a26136
[project @ 2006-01-13 20:01:08 by jwe]
author | jwe |
---|---|
date | Fri, 13 Jan 2006 20:01:09 +0000 |
parents | 4c8a2e4e0717 |
children | 07dd13bfc0ba |
line wrap: on
line diff
--- a/scripts/miscellaneous/fullfile.m +++ b/scripts/miscellaneous/fullfile.m @@ -29,15 +29,15 @@ if (length (filename) < 1) filename = "."; endif - if (strcmp (filename(end), "/")) + if (strcmp (filename(end), filesep)) filename(end) = ""; endif for i = 2:nargin tmp = varargin{i}; - if (strcmp (tmp(1), "/")) + if (strcmp (tmp(1), filesep)) tmp(1) = ""; endif - if (i < nargin && strcmp (tmp(end), "/")) + if (i < nargin && strcmp (tmp(end), filesep)) tmp(end) = ""; endif filename = strcat (filename, filesep, tmp);