mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
[225821] [ftp] opening "/home" fails on OS/400 IFS
This commit is contained in:
parent
2cdcfaf99b
commit
b714fd6f69
2 changed files with 33 additions and 1 deletions
|
@ -19,6 +19,7 @@ Javier Montalvo Orus (Symbian) - Fixing 176216 - [api] FTP sould provide API to
|
|||
Martin Oberhuber (Wind River) - [186523] Move subsystemConfigurations from UI to core
|
||||
Javier Montalvo Orus (Symbian) - improved autodetection of FTPListingParser
|
||||
Martin Oberhuber (Wind River) - [198692] Use FTP LIST -a to list UNIX hidden files
|
||||
Javier Montalvo Orus (Symbian) - [225821] [ftp] opening "/home" fails on OS/400 IFS
|
||||
-->
|
||||
<?eclipse version="3.1"?>
|
||||
<plugin>
|
||||
|
@ -80,7 +81,7 @@ Martin Oberhuber (Wind River) - [198692] Use FTP LIST -a to list UNIX hidden fil
|
|||
priority="100">
|
||||
</parser>
|
||||
<parser
|
||||
class="org.apache.commons.net.ftp.parser.OS400FTPEntryParser"
|
||||
class="org.eclipse.rse.internal.subsystems.files.ftp.parser.RSEOS400FTPEntryParser"
|
||||
systemTypeRegex=".*[Oo][Ss]/400.*"
|
||||
id="org.eclipse.rse.ftp.parser.OS400"
|
||||
label="%FTPParser.OS400"
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2008 Symbian Software Ltd. 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 http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* Javier Montalvo Orus (Symbian) - initial API and implementation
|
||||
* Javier Montalvo Orus (Symbian) - [225821] [ftp] opening "/home" fails on OS/400 IFS
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.subsystems.files.ftp.parser;
|
||||
|
||||
import org.apache.commons.net.ftp.FTPFile;
|
||||
import org.apache.commons.net.ftp.parser.OS400FTPEntryParser;
|
||||
|
||||
public class RSEOS400FTPEntryParser extends OS400FTPEntryParser {
|
||||
public FTPFile parseFTPEntry(String entry)
|
||||
{
|
||||
FTPFile f = super.parseFTPEntry(entry);
|
||||
|
||||
if(f != null)
|
||||
{
|
||||
// only USER permission is shown in RSE
|
||||
f.setPermission(FTPFile.USER_ACCESS, FTPFile.READ_PERMISSION, true);
|
||||
f.setPermission(FTPFile.USER_ACCESS, FTPFile.WRITE_PERMISSION, true);
|
||||
}
|
||||
|
||||
return f;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue