|
|
@@ -119,7 +119,7 @@ public class CFTPHandler implements URIHandler {
|
|
|
@Override
|
|
|
public OutputStream ostream() throws IOException {
|
|
|
FTPClient fc = iopenStream();
|
|
|
- return new OutputStreamWrapper(fc.storeFileStream(uri.getPath())){
|
|
|
+ return new OutputStreamWrapper(fc.storeFileStream(path)){
|
|
|
@Override
|
|
|
public void close() throws IOException {
|
|
|
super.close();
|
|
|
@@ -132,7 +132,7 @@ public class CFTPHandler implements URIHandler {
|
|
|
public InputStream istream(long begin, long end) throws IOException {
|
|
|
FTPClient fc = iopenStream();
|
|
|
fc.setRestartOffset(begin);
|
|
|
- return new InputStreamWrapper(IOStreams.limit(fc.retrieveFileStream(uri.getPath()), 0, end)){
|
|
|
+ return new InputStreamWrapper(IOStreams.limit(fc.retrieveFileStream(path), 0, end)){
|
|
|
@Override
|
|
|
public void close() throws IOException {
|
|
|
super.close();
|