1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 17:25:38 +02:00

[398988] [ftp] FTP Only support to zVM

This commit is contained in:
David McKnight 2013-01-25 13:00:50 -05:00
parent b6496126ab
commit c5a71ccd56
2 changed files with 9 additions and 3 deletions

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -79,6 +79,7 @@
* Rick Sawyer (IBM) - [376535] RSE does not respect editor overrides * 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) - [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 * 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; package org.eclipse.rse.internal.files.ui.view;
@ -2153,6 +2154,8 @@ public class SystemViewRemoteFileAdapter
{ {
//targetFolder.markStale(true); //targetFolder.markStale(true);
targetFolder = targetFS.getRemoteFileObject(targetFolder.getAbsolutePath(), monitor); targetFolder = targetFS.getRemoteFileObject(targetFolder.getAbsolutePath(), monitor);
if (targetFolder == null)
targetFolder = (IRemoteFile)target;
} }
catch (Exception e) catch (Exception e)
{ {
@ -2593,6 +2596,8 @@ public class SystemViewRemoteFileAdapter
{ {
//targetFolder.markStale(true); //targetFolder.markStale(true);
targetFolder = targetFS.getRemoteFileObject(targetFolder.getAbsolutePath(), monitor); targetFolder = targetFS.getRemoteFileObject(targetFolder.getAbsolutePath(), monitor);
if (targetFolder == null)
targetFolder = (IRemoteFile)target;
} }
catch (Exception e) catch (Exception e)
{ {

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * 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 * 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 * 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 * 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; package org.eclipse.rse.internal.services.files.ftp;
@ -67,7 +68,7 @@ public class FTPHostFile implements IHostFile, IHostFilePermissionsContainer
_size = size; _size = size;
_isArchive = internalIsArchive(); _isArchive = internalIsArchive();
_canRead = true; _canRead = true;
_canWrite = false; _canWrite = true;
_isRoot = isRoot; _isRoot = isRoot;
_exists = exists; _exists = exists;
} }