get tests succeed
parent
0d0fbe167b
commit
53bfaa6b60
@ -1,13 +1,13 @@
|
|||||||
import java.nio.file.spi.FileSystemProvider;
|
import java.nio.file.spi.FileSystemProvider;
|
||||||
import org.xbib.files.FileServiceProvider;
|
import org.xbib.files.FileServiceProvider;
|
||||||
import org.xbib.io.ftp.fs.FTPFileSystemProvider;
|
import org.xbib.files.ftp.fs.FTPFileSystemProvider;
|
||||||
import org.xbib.io.ftp.fs.spi.FTPFileServiceProvider;
|
import org.xbib.files.ftp.fs.spi.FTPFileServiceProvider;
|
||||||
|
|
||||||
module org.xbib.files.ftp.fs {
|
module org.xbib.files.ftp.fs {
|
||||||
requires org.xbib.files;
|
requires org.xbib.files;
|
||||||
requires org.xbib.files.ftp;
|
requires org.xbib.files.ftp;
|
||||||
exports org.xbib.io.ftp.fs;
|
exports org.xbib.files.ftp.fs;
|
||||||
exports org.xbib.io.ftp.fs.spi;
|
exports org.xbib.files.ftp.fs.spi;
|
||||||
provides FileSystemProvider with FTPFileSystemProvider;
|
provides FileSystemProvider with FTPFileSystemProvider;
|
||||||
provides FileServiceProvider with FTPFileServiceProvider;
|
provides FileServiceProvider with FTPFileServiceProvider;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.DirectoryIteratorException;
|
import java.nio.file.DirectoryIteratorException;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
@ -1,6 +1,6 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import org.xbib.io.ftp.client.FTPClient;
|
import org.xbib.files.ftp.FTPClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The possible FTP connection modes. Note that server-to-server is not supported.
|
* The possible FTP connection modes. Note that server-to-server is not supported.
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.CopyOption;
|
import java.nio.file.CopyOption;
|
||||||
import java.nio.file.LinkOption;
|
import java.nio.file.LinkOption;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.FileAlreadyExistsException;
|
import java.nio.file.FileAlreadyExistsException;
|
||||||
import java.nio.file.FileSystemException;
|
import java.nio.file.FileSystemException;
|
@ -1,8 +1,8 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import org.xbib.io.ftp.client.FTPClient;
|
import org.xbib.files.ftp.FTPClient;
|
||||||
import org.xbib.io.ftp.client.FTPFile;
|
import org.xbib.files.ftp.FTPFile;
|
||||||
import org.xbib.io.ftp.client.FTPFileFilter;
|
import org.xbib.files.ftp.FTPFileFilter;
|
||||||
|
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.FileAlreadyExistsException;
|
import java.nio.file.FileAlreadyExistsException;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.FileStore;
|
import java.nio.file.FileStore;
|
@ -1,7 +1,7 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import org.xbib.io.ftp.client.FTPFile;
|
import org.xbib.files.ftp.FTPFile;
|
||||||
import org.xbib.io.ftp.client.FTPFileFilter;
|
import org.xbib.files.ftp.FTPFileFilter;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.NoSuchFileException;
|
import java.nio.file.NoSuchFileException;
|
@ -1,6 +1,6 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import org.xbib.io.ftp.client.FTPFile;
|
import org.xbib.files.ftp.FTPFile;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.FileSystemException;
|
import java.nio.file.FileSystemException;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.NoSuchFileException;
|
import java.nio.file.NoSuchFileException;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.NotDirectoryException;
|
import java.nio.file.NotDirectoryException;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.NotLinkException;
|
import java.nio.file.NotLinkException;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a response from an FTP server.
|
* Represents a response from an FTP server.
|
@ -1,7 +1,7 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import org.xbib.io.ftp.client.FTP;
|
import org.xbib.files.ftp.FTP;
|
||||||
import org.xbib.io.ftp.client.FTPClient;
|
import org.xbib.files.ftp.FTPClient;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.CopyOption;
|
import java.nio.file.CopyOption;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.AccessDeniedException;
|
import java.nio.file.AccessDeniedException;
|
||||||
import java.nio.file.FileAlreadyExistsException;
|
import java.nio.file.FileAlreadyExistsException;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
@ -1,7 +1,7 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import org.xbib.io.ftp.client.FTP;
|
import org.xbib.files.ftp.FTP;
|
||||||
import org.xbib.io.ftp.client.FTPClient;
|
import org.xbib.files.ftp.FTPClient;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.CopyOption;
|
import java.nio.file.CopyOption;
|
@ -1,8 +1,8 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
|
|
||||||
import org.xbib.io.ftp.client.FTP;
|
import org.xbib.files.ftp.FTP;
|
||||||
import org.xbib.io.ftp.client.FTPClient;
|
import org.xbib.files.ftp.FTPClient;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.CopyOption;
|
import java.nio.file.CopyOption;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.LinkOption;
|
import java.nio.file.LinkOption;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.LinkOption;
|
import java.nio.file.LinkOption;
|
||||||
import java.nio.file.OpenOption;
|
import java.nio.file.OpenOption;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.FileSystem;
|
import java.nio.file.FileSystem;
|
||||||
import java.nio.file.PathMatcher;
|
import java.nio.file.PathMatcher;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.attribute.PosixFilePermission;
|
import java.nio.file.attribute.PosixFilePermission;
|
||||||
import java.util.EnumSet;
|
import java.util.EnumSet;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The possible FTPS security modes.
|
* The possible FTPS security modes.
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.FileSystem;
|
import java.nio.file.FileSystem;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.attribute.FileAttribute;
|
import java.nio.file.attribute.FileAttribute;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.attribute.GroupPrincipal;
|
import java.nio.file.attribute.GroupPrincipal;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.nio.file.attribute.UserPrincipal;
|
import java.nio.file.attribute.UserPrincipal;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base class of option combinations that support file transfers.
|
* The base class of option combinations that support file transfers.
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
package org.xbib.files.ftp.fs;
|
||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
@ -1,7 +1,7 @@
|
|||||||
package org.xbib.io.ftp.fs.spi;
|
package org.xbib.files.ftp.fs.spi;
|
||||||
|
|
||||||
import org.xbib.io.ftp.fs.FTPEnvironment;
|
import org.xbib.files.ftp.fs.FTPEnvironment;
|
||||||
import org.xbib.io.ftp.fs.FTPFileSystemProvider;
|
import org.xbib.files.ftp.fs.FTPFileSystemProvider;
|
||||||
|
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs.spi;
|
package org.xbib.files.ftp.fs.spi;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs.spi;
|
package org.xbib.files.ftp.fs.spi;
|
||||||
|
|
||||||
import org.xbib.files.FileService;
|
import org.xbib.files.FileService;
|
||||||
import org.xbib.files.FileServiceProvider;
|
import org.xbib.files.FileServiceProvider;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs.spi;
|
package org.xbib.files.ftp.fs.spi;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
@ -1,73 +0,0 @@
|
|||||||
package org.xbib.io.ftp.fs;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.io.InputStreamReader;
|
|
||||||
import java.io.Reader;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.net.URLConnection;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
import java.security.AccessController;
|
|
||||||
import java.security.PrivilegedActionException;
|
|
||||||
import java.security.PrivilegedExceptionAction;
|
|
||||||
import java.util.Locale;
|
|
||||||
import java.util.PropertyResourceBundle;
|
|
||||||
import java.util.ResourceBundle;
|
|
||||||
import java.util.ResourceBundle.Control;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A resource bundle control that uses UTF-8 instead of the default encoding when reading resources from properties files. It is thread-safe.
|
|
||||||
*/
|
|
||||||
public final class UTF8Control extends Control {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The single instance.
|
|
||||||
*/
|
|
||||||
public static final UTF8Control INSTANCE = new UTF8Control();
|
|
||||||
|
|
||||||
private UTF8Control() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ResourceBundle newBundle(String baseName, Locale locale, String format, final ClassLoader loader, final boolean reload)
|
|
||||||
throws IllegalAccessException, InstantiationException, IOException {
|
|
||||||
if (!"java.properties".equals(format)) {
|
|
||||||
return super.newBundle(baseName, locale, format, loader, reload);
|
|
||||||
}
|
|
||||||
String bundleName = toBundleName(baseName, locale);
|
|
||||||
ResourceBundle bundle = null;
|
|
||||||
final String resourceName = toResourceName(bundleName, "properties");
|
|
||||||
InputStream in = null;
|
|
||||||
try {
|
|
||||||
in = AccessController.doPrivileged(new PrivilegedExceptionAction<InputStream>() {
|
|
||||||
@Override
|
|
||||||
public InputStream run() throws Exception {
|
|
||||||
InputStream in = null;
|
|
||||||
if (reload) {
|
|
||||||
URL url = loader.getResource(resourceName);
|
|
||||||
if (url != null) {
|
|
||||||
URLConnection connection = url.openConnection();
|
|
||||||
if (connection != null) {
|
|
||||||
// Disable caches to get fresh data for reloading.
|
|
||||||
connection.setUseCaches(false);
|
|
||||||
in = connection.getInputStream();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
in = loader.getResourceAsStream(resourceName);
|
|
||||||
}
|
|
||||||
return in;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} catch (PrivilegedActionException e) {
|
|
||||||
throw (IOException) e.getException();
|
|
||||||
}
|
|
||||||
if (in != null) {
|
|
||||||
try (Reader reader = new InputStreamReader(in, StandardCharsets.UTF_8)) {
|
|
||||||
bundle = new PropertyResourceBundle(reader);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return bundle;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1 +1 @@
|
|||||||
org.xbib.io.ftp.fs.FTPFileSystemProvider
|
org.xbib.files.ftp.fs.FTPFileSystemProvider
|
||||||
|
@ -1 +1 @@
|
|||||||
org.xbib.io.ftp.fs.spi.FTPFileServiceProvider
|
org.xbib.files.ftp.fs.spi.FTPFileServiceProvider
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs.test;
|
package org.xbib.files.ftp.fs.test;
|
||||||
|
|
||||||
import org.hamcrest.Description;
|
import org.hamcrest.Description;
|
||||||
import org.hamcrest.Matcher;
|
import org.hamcrest.Matcher;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs.test;
|
package org.xbib.files.ftp.fs.test;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
|
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs.test;
|
package org.xbib.files.ftp.fs.test;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs.test.server;
|
package org.xbib.files.ftp.fs.test.server;
|
||||||
|
|
||||||
import org.xbib.files.ftp.mock.fake.filesystem.FileSystemEntry;
|
import org.xbib.files.ftp.mock.fake.filesystem.FileSystemEntry;
|
||||||
import org.xbib.files.ftp.mock.fake.filesystem.UnixDirectoryListingFormatter;
|
import org.xbib.files.ftp.mock.fake.filesystem.UnixDirectoryListingFormatter;
|
@ -1,10 +1,9 @@
|
|||||||
package org.xbib.io.ftp.fs.test.server;
|
package org.xbib.files.ftp.fs.test.server;
|
||||||
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.xbib.files.ftp.mock.fake.filesystem.FileSystemEntry;
|
import org.xbib.files.ftp.mock.fake.filesystem.FileSystemEntry;
|
||||||
import org.xbib.files.ftp.mock.fake.filesystem.UnixFakeFileSystem;
|
import org.xbib.files.ftp.mock.fake.filesystem.UnixFakeFileSystem;
|
||||||
import static org.xbib.io.ftp.client.parser.FTPTimestampParserImpl.getEntry;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An extended version of {@link UnixFakeFileSystem} that supports symbolic links.
|
* An extended version of {@link UnixFakeFileSystem} that supports symbolic links.
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs.test.server;
|
package org.xbib.files.ftp.fs.test.server;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs.test.server;
|
package org.xbib.files.ftp.fs.test.server;
|
||||||
|
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.fs.test.server;
|
package org.xbib.files.ftp.fs.test.server;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import org.xbib.files.ftp.mock.fake.filesystem.FileSystemEntry;
|
import org.xbib.files.ftp.mock.fake.filesystem.FileSystemEntry;
|
@ -0,0 +1,132 @@
|
|||||||
|
# Copyright 2008 the original author or authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Mapping of reply code -> reply text
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
110=Restart marker reply.
|
||||||
|
120=Service ready in nnn minutes.
|
||||||
|
125=Data connection already open; transfer starting.
|
||||||
|
150=File status okay; about to open data connection.
|
||||||
|
200=Command okay.
|
||||||
|
202=Command not implemented, superfluous at this site.
|
||||||
|
211={0}.
|
||||||
|
212={0}.
|
||||||
|
213={0}.
|
||||||
|
214={0}.
|
||||||
|
215={0} system type.
|
||||||
|
220=Service ready for new user. (MockFtpServer 3.1.0; see http://mockftpserver.org)
|
||||||
|
221=Service closing control connection.
|
||||||
|
225=Data connection open; no transfer in progress.
|
||||||
|
226=Closing data connection. Requested file action successful.
|
||||||
|
226.WithFilename=Closing data connection. Requested file action successful. Filename={0}.
|
||||||
|
227=Entering Passive Mode {0}.
|
||||||
|
229=Entering Extended Passive Mode (|||{0}|)
|
||||||
|
230=User logged in, proceed.
|
||||||
|
250=Requested file action okay, completed.
|
||||||
|
257={0} created.
|
||||||
|
331=User name okay, need password.
|
||||||
|
332=Need account for login.
|
||||||
|
350=Requested file action pending further information.
|
||||||
|
421=Service not available, closing control connection.
|
||||||
|
# This may be a reply to any command if the service knows it must shut down.
|
||||||
|
425=Can't open data connection.
|
||||||
|
426=Connection closed; transfer aborted.
|
||||||
|
450=Requested file action not taken.
|
||||||
|
# File unavailable (e.g., file busy).
|
||||||
|
451=Requested action aborted: local error in processing.
|
||||||
|
452=Requested action not taken.
|
||||||
|
# Insufficient storage space in system.
|
||||||
|
500=Syntax error, command unrecognized.
|
||||||
|
# This may include errors such as command line too long.
|
||||||
|
501=Syntax error in parameters or arguments.
|
||||||
|
502=Command not implemented: {0}.
|
||||||
|
503=Bad sequence of commands.
|
||||||
|
504=Command not implemented for that parameter.
|
||||||
|
530=Not logged in.
|
||||||
|
532=Need account for storing files.
|
||||||
|
550=File not found or not accessible: {0}.
|
||||||
|
# File unavailable (e.g., file not found, no access).
|
||||||
|
551=Requested action aborted: page type unknown.
|
||||||
|
552=Requested file action aborted.
|
||||||
|
# Exceeded storage allocation (for current directory or dataset).
|
||||||
|
553=Requested action not taken for {0}
|
||||||
|
# File name not allowed.
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# FTP Command-Specific Reply Messages
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
abor=ABOR completed.
|
||||||
|
acct=ACCT completed for {0}.
|
||||||
|
allo=ALLO completed.
|
||||||
|
appe=Created or appended to file {0}.
|
||||||
|
cdup=CDUP completed. New directory is {0}.
|
||||||
|
cwd=CWD completed. New directory is {0}.
|
||||||
|
dele="{0}" deleted.
|
||||||
|
eprt=EPRT completed.
|
||||||
|
epsv=Entering Extended Passive Mode (|||{0}|)
|
||||||
|
help={0}.
|
||||||
|
help.noHelpTextDefined=No help text has been defined for [{0}]
|
||||||
|
mkd="{0}" created.
|
||||||
|
mode=MODE completed.
|
||||||
|
noop=NOOP completed.
|
||||||
|
pass=User logged in, proceed.
|
||||||
|
pass.needAccount=Need account for login.
|
||||||
|
pass.loginFailed=Not logged in.
|
||||||
|
pasv=({0})
|
||||||
|
port=PORT completed.
|
||||||
|
pwd="{0}" is current directory.
|
||||||
|
quit=Service closing control connection.
|
||||||
|
rein=REIN completed.
|
||||||
|
rest=REST completed.
|
||||||
|
rmd="{0}" removed.
|
||||||
|
rnfr=Requested file action pending further information.
|
||||||
|
rnto=Rename from {0} to {1} completed.
|
||||||
|
site=SITE completed.
|
||||||
|
size={0}
|
||||||
|
smnt=SMNT completed.
|
||||||
|
stat={0}.
|
||||||
|
stou=Created file {0}.
|
||||||
|
stor=Created file {0}.
|
||||||
|
stru=STRU completed.
|
||||||
|
syst="{0}"
|
||||||
|
type=TYPE completed.
|
||||||
|
user.loggedIn=User logged in, proceed.
|
||||||
|
user.needPassword=User name okay, need password.
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# FileSystem Messages
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
filesystem.alreadyExists=The path [{0}] already exists.
|
||||||
|
filesystem.parentDirectoryDoesNotExist=The parent directory [{0}] does not exist.
|
||||||
|
filesystem.doesNotExist=[{0}] does not exist.
|
||||||
|
filesystem.isDirectory=[{0}] is a directory.
|
||||||
|
filesystem.isFile=[{0}] is a file.
|
||||||
|
filesystem.isNotADirectory=[{0}] is not a directory or does not exist.
|
||||||
|
filesystem.isNotAFile=[{0}] is not a file or does not exist.
|
||||||
|
filesystem.cannotRead=The current user does not have read permission for [{0}].
|
||||||
|
filesystem.cannotWrite=The current user does not have write permission for [{0}].
|
||||||
|
filesystem.cannotExecute=The current user does not have execute permission for [{0}].
|
||||||
|
filesystem.directoryIsNotEmpty=The [{0}] directory is not empty.
|
||||||
|
filesystem.renameFailed=The rename to [{0}] has failed.
|
||||||
|
filesystem.pathIsNotValid=The path [{0}] is not valid.
|
||||||
|
filesystem.currentDirectoryNotSet=The current directory has not been set.
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Other Common Messages
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
login.userAccountNotValid=UserAccount missing or invalid for user [{0}]
|
||||||
|
login.homeDirectoryNotValid=The homeDirectory configured for user [{0}] is not a valid directory: [{1}]
|
||||||
|
|
||||||
|
internalError=Internal error: {0} {1}
|
@ -0,0 +1,17 @@
|
|||||||
|
# Copyright 2007 the original author or authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# Test-specific mapping of reply code -> reply text
|
||||||
|
# Tests are dependent on one or more values within this file
|
||||||
|
110=Testing123
|
@ -1,5 +1,5 @@
|
|||||||
module org.xbib.files.ftp {
|
module org.xbib.files.ftp {
|
||||||
exports org.xbib.io.ftp.client;
|
exports org.xbib.files.ftp;
|
||||||
exports org.xbib.io.ftp.client.parser;
|
exports org.xbib.files.ftp.parser;
|
||||||
requires java.logging;
|
requires java.logging;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface adds the aspect of configurability by means of
|
* This interface adds the aspect of configurability by means of
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.util.EventListener;
|
import java.util.EventListener;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.util.EventObject;
|
import java.util.EventObject;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.util.EventListener;
|
import java.util.EventListener;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.net.DatagramSocket;
|
import java.net.DatagramSocket;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.net.DatagramSocket;
|
import java.net.DatagramSocket;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.net.DatagramSocket;
|
import java.net.DatagramSocket;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import javax.net.SocketFactory;
|
import javax.net.SocketFactory;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.BufferedWriter;
|
import java.io.BufferedWriter;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.time.ZonedDateTime;
|
import java.time.ZonedDateTime;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform filtering on FTPFile entries.
|
* Perform filtering on FTPFile entries.
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
@ -1,4 +1,4 @@
|
|||||||
package org.xbib.io.ftp.client;
|
package org.xbib.files.ftp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FTPReply stores a set of constants for FTP reply codes. To interpret
|
* FTPReply stores a set of constants for FTP reply codes. To interpret
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue