diff --git a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java index b263a8d067b..063280bd2d6 100644 --- a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java +++ b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2002, 2012 IBM Corporation and others. + * Copyright (c) 2002, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -79,6 +79,7 @@ * Rick Sawyer (IBM) - [376535] RSE does not respect editor overrides * David McKnight (IBM) - [389838] Fast folder transfer does not account for code page * David Mcknight (IBM) - [374681] Incorrect number of children on the properties page of a directory + * Samuel Wu (IBM) - [398988] [ftp] FTP Only support to zVM *******************************************************************************/ package org.eclipse.rse.internal.files.ui.view; @@ -2153,6 +2154,8 @@ public class SystemViewRemoteFileAdapter { //targetFolder.markStale(true); targetFolder = targetFS.getRemoteFileObject(targetFolder.getAbsolutePath(), monitor); + if (targetFolder == null) + targetFolder = (IRemoteFile)target; } catch (Exception e) { @@ -2593,6 +2596,8 @@ public class SystemViewRemoteFileAdapter { //targetFolder.markStale(true); targetFolder = targetFS.getRemoteFileObject(targetFolder.getAbsolutePath(), monitor); + if (targetFolder == null) + targetFolder = (IRemoteFile)target; } catch (Exception e) { diff --git a/rse/plugins/org.eclipse.rse.services.files.ftp/src/org/eclipse/rse/internal/services/files/ftp/FTPHostFile.java b/rse/plugins/org.eclipse.rse.services.files.ftp/src/org/eclipse/rse/internal/services/files/ftp/FTPHostFile.java index fc08fe3452b..d279d3c67c1 100644 --- a/rse/plugins/org.eclipse.rse.services.files.ftp/src/org/eclipse/rse/internal/services/files/ftp/FTPHostFile.java +++ b/rse/plugins/org.eclipse.rse.services.files.ftp/src/org/eclipse/rse/internal/services/files/ftp/FTPHostFile.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2008 IBM Corporation and others. + * Copyright (c) 2005, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -23,6 +23,7 @@ * Javier Montalvo Orus (Symbian) - [198692] FTP should mark files starting with "." as hidden * David McKnight (IBM) - [209593] [api] add support for "file permissions" and "owner" properties for unix files * Martin Oberhuber (Wind River) - [235360][ftp][ssh][local] Return proper "Root" IHostFile + * Samuel Wu (IBM) - [398988] [ftp] FTP Only support to zVM *******************************************************************************/ package org.eclipse.rse.internal.services.files.ftp; @@ -67,7 +68,7 @@ public class FTPHostFile implements IHostFile, IHostFilePermissionsContainer _size = size; _isArchive = internalIsArchive(); _canRead = true; - _canWrite = false; + _canWrite = true; _isRoot = isRoot; _exists = exists; }