mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +02:00
[224540] RSEFileStore.mkdir(EFS.NONE, null) doesn't create parent folder (apply patch from Timur Shipilov)
This commit is contained in:
parent
2011cddc47
commit
44fbb32594
2 changed files with 9 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
|||
* Martin Oberhuber (Wind River) - [189441] fix EFS operations on Windows (Local) systems
|
||||
* Martin Oberhuber (Wind River) - [191589] fix Rename by adding putInfo() for RSE EFS, and fetch symlink info
|
||||
* Kevin Doyle (IBM) - [210673] [efs][nls] Externalize Strings in RSEFileStore and RSEFileStoreImpl
|
||||
* Timur Shiplov (Xored) - [224538] RSEFileStore.getParent() returns null for element which is not root of filesystem
|
||||
* Timur Shipilov (Xored) - [224538] RSEFileStore.getParent() returns null for element which is not root of filesystem
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.efs;
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
* David McKnight (IBM) - [207178] changing list APIs for file service and subsystems
|
||||
* Kevin Doyle (IBM) - [208778] [efs][api] RSEFileStore#getOutputStream() does not support EFS#APPEND
|
||||
* Kevin Doyle (IBM) - [210673] [efs][nls] Externalize Strings in RSEFileStore and RSEFileStoreImpl
|
||||
* Timur Shipilov (Xored) - [224540] [efs] RSEFileStore.mkdir(EFS.NONE, null) doesn't create parent folder
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.efs;
|
||||
|
@ -619,6 +620,13 @@ public class RSEFileStoreImpl extends FileStore
|
|||
*/
|
||||
public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException
|
||||
{
|
||||
if (options == EFS.NONE) {
|
||||
IFileStore parent = getParent();
|
||||
if (parent != null) {
|
||||
parent.mkdir(options, monitor);
|
||||
}
|
||||
}
|
||||
|
||||
cacheRemoteFile(null);
|
||||
IRemoteFile remoteFile = getRemoteFileObject(monitor, false);
|
||||
if (remoteFile==null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue