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:
parent
5d113e2520
commit
c532ba35ce
1 changed files with 15 additions and 11 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue