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

Collapse All | Expand All

(-)src/org/eclipse/rse/internal/subsystems/files/ftp/parser/RSEOS400FTPEntryParser.java (+30 lines)
Added Link Here
1
/********************************************************************************
2
 * Copyright (c) 2008 Symbian Software Ltd. All rights reserved.
3
 * This program and the accompanying materials are made available under the terms
4
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is 
5
 * available at http://www.eclipse.org/legal/epl-v10.html
6
 * 
7
 * Contributors:
8
 *   Javier Montalvo Orus (Symbian) - initial API and implementation
9
 ********************************************************************************/
10
11
package org.eclipse.rse.internal.subsystems.files.ftp.parser;
12
13
import org.apache.commons.net.ftp.FTPFile;
14
import org.apache.commons.net.ftp.parser.OS400FTPEntryParser;
15
16
public class RSEOS400FTPEntryParser extends OS400FTPEntryParser {
17
	 public FTPFile parseFTPEntry(String entry)
18
	    {
19
		 FTPFile f = super.parseFTPEntry(entry);
20
		 
21
		 if(f != null)
22
		 {
23
		 	 // only USER permission is shown in RSE
24
	    	 f.setPermission(FTPFile.USER_ACCESS, FTPFile.READ_PERMISSION, true);
25
	    	 f.setPermission(FTPFile.USER_ACCESS, FTPFile.WRITE_PERMISSION, true);
26
		 }
27
		 
28
		 return f;
29
	    }
30
}

Return to bug 225821