1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 15:15:25 +02:00

[234038] Mark IRemoteFile stale when changing permissions

This commit is contained in:
Martin Oberhuber 2008-05-26 23:21:45 +00:00
parent cb0508dd34
commit e47350a7b9

View file

@ -37,7 +37,8 @@
* Martin Oberhuber (Wind River) - [218304] Improve deferred adapter loading
* David Dykstal (IBM) - [221211] fix IFileService API for batch operations
* Martin Oberhuber (Wind River) - [221211] Fix markStale() for delete() operation with exceptions
* David Dykstal (IBM) [230821] fix IRemoteFileSubSystem API to be consistent with IFileService
* David Dykstal (IBM) - [230821] fix IRemoteFileSubSystem API to be consistent with IFileService
* Martin Oberhuber (Wind River) - [234038] Mark IRemoteFile stale when changing permissions
*******************************************************************************/
package org.eclipse.rse.subsystems.files.core.servicesubsystem;
@ -912,6 +913,8 @@ public class FileServiceSubSystem extends RemoteFileSubSystem implements IFileSe
{
String name = folderOrFile.getName();
String parent = folderOrFile.getParentPath();
//mark stale regardless of whether the call succeeds or not
folderOrFile.markStale(true);
_hostFileService.setLastModified(parent, name, newDate, monitor);
}
@ -919,6 +922,8 @@ public class FileServiceSubSystem extends RemoteFileSubSystem implements IFileSe
{
String name = folderOrFile.getName();
String parent = folderOrFile.getParentPath();
//mark stale regardless of whether the call succeeds or not
folderOrFile.markStale(true);
_hostFileService.setReadOnly(parent, name, readOnly, monitor);
}