time | calls | line |
---|
| | 296 | function existsOnDisk = doesFileExist(inFilename)
|
| 5 | 297 | fileObject = java.io.File(inFilename);
|
| 5 | 298 | existsOnDisk = false;
|
| 5 | 299 | if isempty(fileObject)
|
| | 300 | return;
|
| 5 | 301 | else
|
| 5 | 302 | try
|
| 5 | 303 | if fileObject.exists && fileObject.isFile
|
| | 304 | [~, fn1] = fileparts(inFilename);
|
| | 305 | filename2 = char(fileObject.getCanonicalPath);
|
| | 306 | [~, fn2] = fileparts(filename2);
|
| | 307 | if isequal(fn1, fn2)
|
| | 308 | existsOnDisk = true;
|
| | 309 | end
|
| | 310 | end
|
| | 311 | catch
|
| | 312 | existsOnDisk = false;
|
| | 313 | end
|
| 5 | 314 | end
|
| 5 | 315 | end
|
Other subfunctions in this file are not included in this listing.