Lines 14-19
Link Here
|
14 |
* Contributors: |
14 |
* Contributors: |
15 |
* {Name} (company) - description of contribution. |
15 |
* {Name} (company) - description of contribution. |
16 |
* Xuan Chen (IBM) - [194293] [Local][Archives] Saving file second time in an Archive Errors |
16 |
* Xuan Chen (IBM) - [194293] [Local][Archives] Saving file second time in an Archive Errors |
|
|
17 |
* Xuan Chen (IBM) - [199132] [Archives-TAR][Local-Windows] Can't open files in tar archives |
17 |
*******************************************************************************/ |
18 |
*******************************************************************************/ |
18 |
|
19 |
|
19 |
package org.eclipse.rse.services.clientserver.archiveutils; |
20 |
package org.eclipse.rse.services.clientserver.archiveutils; |
Lines 870-875
Link Here
|
870 |
destination.setLastModified(entry.getModificationTime()); |
871 |
destination.setLastModified(entry.getModificationTime()); |
871 |
return false; // TODO: return true or false? |
872 |
return false; // TODO: return true or false? |
872 |
} |
873 |
} |
|
|
874 |
//Need to make sure destination file exists. |
875 |
if (!destination.exists()) |
876 |
{ |
877 |
File parentFile = destination.getParentFile(); |
878 |
if (!parentFile.exists()) |
879 |
parentFile.mkdirs(); |
880 |
destination.createNewFile(); |
881 |
} |
873 |
|
882 |
|
874 |
outStream = new FileOutputStream(destination); |
883 |
outStream = new FileOutputStream(destination); |
875 |
|
884 |
|
Lines 2248-2255
Link Here
|
2248 |
} |
2257 |
} |
2249 |
|
2258 |
|
2250 |
public boolean add(File file, String virtualPath, String name, String sourceEncoding, String targetEncoding, ISystemFileTypes typeRegistery) { |
2259 |
public boolean add(File file, String virtualPath, String name, String sourceEncoding, String targetEncoding, ISystemFileTypes typeRegistery) { |
2251 |
// TODO Auto-generated method stub |
2260 |
return add(file, virtualPath, name); |
2252 |
return false; |
|
|
2253 |
} |
2261 |
} |
2254 |
|
2262 |
|
2255 |
public boolean replace(String fullVirtualName, InputStream stream, String name, String sourceEncoding, String targetEncoding, boolean isText) { |
2263 |
public boolean replace(String fullVirtualName, InputStream stream, String name, String sourceEncoding, String targetEncoding, boolean isText) { |