View | Details | Raw Unified | Return to bug 233993 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/rse/internal/efs/RSEFileStoreImpl.java (-15 / +11 lines)
Lines 306-314 Link Here
306
			try {
306
			try {
307
				remoteFile = parent.getParentRemoteFileSubSystem().getRemoteFileObject(parent, getName(), monitor);
307
				remoteFile = parent.getParentRemoteFileSubSystem().getRemoteFileObject(parent, getName(), monitor);
308
			} catch(SystemMessageException e) {
308
			} catch(SystemMessageException e) {
309
				throw new CoreException(new Status(IStatus.ERROR,
309
				rethrowCoreException(e, EFS.ERROR_READ);
310
						Activator.getDefault().getBundle().getSymbolicName(),
311
						getExceptionMessage(null, e), e));
312
			}
310
			}
313
		} else {
311
		} else {
314
			//Handle was created with an absolute name
312
			//Handle was created with an absolute name
Lines 317-326 Link Here
317
				remoteFile = subSys.getRemoteFileObject(_store.getAbsolutePath(), monitor);
315
				remoteFile = subSys.getRemoteFileObject(_store.getAbsolutePath(), monitor);
318
			}
316
			}
319
			catch (SystemMessageException e) {
317
			catch (SystemMessageException e) {
320
				throw new CoreException(new Status(
318
				rethrowCoreException(e, EFS.ERROR_READ);
321
						IStatus.ERROR,
322
						Activator.getDefault().getBundle().getSymbolicName(),
323
						getExceptionMessage(null, e), e));
324
			}
319
			}
325
		}
320
		}
326
321
Lines 328-334 Link Here
328
		if (forceExists && (remoteFile == null || !remoteFile.exists())) {
323
		if (forceExists && (remoteFile == null || !remoteFile.exists())) {
329
			throw new CoreException(new Status(IStatus.ERROR,
324
			throw new CoreException(new Status(IStatus.ERROR,
330
					Activator.getDefault().getBundle().getSymbolicName(),
325
					Activator.getDefault().getBundle().getSymbolicName(),
331
					Messages.FILE_STORE_DOES_NOT_EXIST));
326
					EFS.ERROR_NO_LOCATION,
327
					Messages.FILE_STORE_DOES_NOT_EXIST, null));
332
		}
328
		}
333
		return remoteFile;
329
		return remoteFile;
334
	}
330
	}
Lines 636-648 Link Here
636
	 */
632
	 */
637
	public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException
633
	public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException
638
	{
634
	{
639
		//TODO Check should be done by IRemoteFileSubSystem.createFolders()
635
		//TODO bug 234026: Check should be done by IRemoteFileSubSystem.createFolders()
640
		//if ((options & EFS.SHALLOW)!=0) {
636
		if ((options & EFS.SHALLOW) == 0) {
641
		//	IFileStore parent = getParent();
637
			IFileStore parent = getParent();
642
		//	if (parent == null) || !parent.{
638
			if (parent != null) {
643
		//		parent.mkdir(options, monitor);
639
				parent.mkdir(options, monitor);
644
		//	}
640
			}
645
		//}
641
		}
646
642
647
		cacheRemoteFile(null);
643
		cacheRemoteFile(null);
648
		IRemoteFile remoteFile = getRemoteFileObject(monitor, false);
644
		IRemoteFile remoteFile = getRemoteFileObject(monitor, false);

Return to bug 233993