1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-08 17:45:24 +02:00

dont' set attrributes when file doesn't exist Bug#: 158781

This commit is contained in:
David McKnight 2006-09-28 14:59:20 +00:00
parent 5d113e2520
commit c532ba35ce

View file

@ -123,6 +123,7 @@ public class RSEFileStoreRemoteFileWrapper extends FileStore implements IFileSto
} }
} }
FileInfo info = new FileInfo(getName()); FileInfo info = new FileInfo(getName());
boolean exists = _remoteFile.exists();
/* /*
if (_remoteFile.getName().equals(".project") && _remoteFile.getLength() == 0) if (_remoteFile.getName().equals(".project") && _remoteFile.getLength() == 0)
{ {
@ -131,8 +132,10 @@ public class RSEFileStoreRemoteFileWrapper extends FileStore implements IFileSto
else else
*/ */
{ {
info.setExists(_remoteFile.exists()); info.setExists(exists);
} }
if (exists)
{
info.setLastModified(_remoteFile.getLastModified()); info.setLastModified(_remoteFile.getLastModified());
boolean isDir = _remoteFile.isDirectory(); boolean isDir = _remoteFile.isDirectory();
info.setDirectory(isDir); info.setDirectory(isDir);
@ -145,6 +148,7 @@ public class RSEFileStoreRemoteFileWrapper extends FileStore implements IFileSto
{ {
info.setLength(_remoteFile.getLength()); info.setLength(_remoteFile.getLength());
} }
}
info.setName(getName()); info.setName(getName());
return info; return info;