Home
last modified time | relevance | path

Searched refs:toPath (Results 1 – 25 of 94) sorted by relevance

1234

/external/mockftpserver/tags/2.0/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
54 getFileSystem().rename(fromPath, toPath); in handle()
57 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.0-rc1/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
54 getFileSystem().rename(fromPath, toPath); in handle()
57 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
54 getFileSystem().rename(fromPath, toPath); in handle()
57 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
54 getFileSystem().rename(fromPath, toPath); in handle()
57 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.x_Before_IDEA/src/main/groovy/org/mockftpserver/fake/command/
DRntoCommandHandler.groovy45 def toPath = getRealPath(session, getRequiredParameter(command))
48 verifyForNewFile(!fileSystem.isDirectory(toPath), toPath)
49 verifyForNewFile(fileSystem.rename(fromPath, toPath), toPath)
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java256 public void rename(String fromPath, String toPath) { in rename() argument
257 Assert.notNull(toPath, "toPath"); in rename()
262 if (exists(toPath)) { in rename()
263 throw new FileSystemException(toPath, "filesystem.alreadyExists"); in rename()
267 String normalizedToPath = normalize(toPath); in rename()
275 throw new FileSystemException(toPath, "filesystem.renameFailed"); in rename()
467 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
469 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java255 public void rename(String fromPath, String toPath) { in rename() argument
256 Assert.notNull(toPath, "toPath"); in rename()
261 if (exists(toPath)) { in rename()
262 throw new FileSystemException(toPath, "filesystem.alreadyExists"); in rename()
266 String normalizedToPath = normalize(toPath); in rename()
274 throw new FileSystemException(toPath, "filesystem.renameFailed"); in rename()
466 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
468 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java256 public void rename(String fromPath, String toPath) { in rename() argument
257 Assert.notNull(toPath, "toPath"); in rename()
262 if (exists(toPath)) { in rename()
263 throw new FileSystemException(toPath, "filesystem.alreadyExists"); in rename()
267 String normalizedToPath = normalize(toPath); in rename()
275 throw new FileSystemException(toPath, "filesystem.renameFailed"); in rename()
467 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
469 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java256 public void rename(String fromPath, String toPath) { in rename() argument
257 Assert.notNull(toPath, "toPath"); in rename()
262 if (exists(toPath)) { in rename()
263 throw new FileSystemException(toPath, "filesystem.alreadyExists"); in rename()
267 String normalizedToPath = normalize(toPath); in rename()
275 throw new FileSystemException(toPath, "filesystem.renameFailed"); in rename()
467 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
469 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java255 public void rename(String fromPath, String toPath) { in rename() argument
256 Assert.notNull(toPath, "toPath"); in rename()
261 if (exists(toPath)) { in rename()
262 throw new FileSystemException(toPath, "filesystem.alreadyExists"); in rename()
266 String normalizedToPath = normalize(toPath); in rename()
274 throw new FileSystemException(toPath, "filesystem.renameFailed"); in rename()
466 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
468 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java255 public void rename(String fromPath, String toPath) { in rename() argument
256 Assert.notNull(toPath, "toPath"); in rename()
262 String normalizedToPath = normalize(toPath); in rename()
458 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
460 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java255 public void rename(String fromPath, String toPath) { in rename() argument
256 Assert.notNull(toPath, "toPath"); in rename()
262 String normalizedToPath = normalize(toPath); in rename()
458 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
460 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.0/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java255 public void rename(String fromPath, String toPath) { in rename() argument
256 Assert.notNull(toPath, "toPath"); in rename()
262 String normalizedToPath = normalize(toPath); in rename()
458 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
460 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java255 public void rename(String fromPath, String toPath) { in rename() argument
256 Assert.notNull(toPath, "toPath"); in rename()
262 String normalizedToPath = normalize(toPath); in rename()
458 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
460 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java255 public void rename(String fromPath, String toPath) { in rename() argument
256 Assert.notNull(toPath, "toPath"); in rename()
262 String normalizedToPath = normalize(toPath); in rename()
458 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
460 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java255 public void rename(String fromPath, String toPath) { in rename() argument
256 Assert.notNull(toPath, "toPath"); in rename()
262 String normalizedToPath = normalize(toPath); in rename()
458 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
460 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.0-rc1/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java255 public void rename(String fromPath, String toPath) { in rename() argument
256 Assert.notNull(toPath, "toPath"); in rename()
262 String normalizedToPath = normalize(toPath); in rename()
453 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
455 String normalizedTo = normalize(toPath); in renamePath()

1234