Skip to content

Commit

Permalink
Merge pull request #404 from lmagyar/pr-remove-virtual-config-file
Browse files Browse the repository at this point in the history
Revert "Merge pull request #378 from lmagyar/pr-virtual-config-file"
  • Loading branch information
wolpi authored Oct 19, 2024
2 parents 53a1284 + aaa92b9 commit 2469c64
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 159 deletions.
3 changes: 1 addition & 2 deletions primitiveFTPd/src/org/primftpd/events/ClientActionEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ public enum Storage {
ROOT,
SAF,
ROSAF,
QUICKSHARE,
CONFIG
QUICKSHARE
}

public enum Protocol {
Expand Down
105 changes: 0 additions & 105 deletions primitiveFTPd/src/org/primftpd/filesystem/VirtualConfigFile.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ public VirtualFileSystemView(
public abstract TMina createFile(String absPath, AbstractFile delegate);
public abstract TMina createFile(String absPath, boolean exists);

public abstract VirtualConfigFile getConfigFile();

protected abstract String absolute(String file);

public TMina getFile(String file) {
Expand Down Expand Up @@ -64,10 +62,6 @@ public TMina getFile(String file) {
logger.debug("Using ROSAF '{}' for '{}'", realPath, absoluteVirtualPath);
AbstractFile delegate = roSafFileSystemView.getFile(realPath);
return createFile(absoluteVirtualPath, delegate);
} else if (VirtualConfigFile.ABS_PATH.equals(absoluteVirtualPath)) {
logger.debug("Using VirtualFile for CONFIG path '{}'", absoluteVirtualPath);
AbstractFile delegate = getConfigFile();
return createFile(absoluteVirtualPath, delegate);
} else{
logger.debug("Using VirtualFile for unknown path '{}'", absoluteVirtualPath);
return createFile(absoluteVirtualPath, false);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ public FtpFile createFile(String absPath, boolean exists) {
return new VirtualFtpFile(this, absPath, exists, user);
}

@Override
public VirtualFtpConfigFile getConfigFile() {
return new VirtualFtpConfigFile(this, user);
}

@Override
protected String absolute(String file) {
logger.trace(" finding abs path for '{}' with wd '{}'", file, (workingDir != null ? workingDir.getAbsolutePath() : "null"));
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ public SshFile createFile(String absPath, boolean exists) {
return new VirtualSshFile(this, absPath, exists, session);
}

@Override
public VirtualSshConfigFile getConfigFile() {
return new VirtualSshConfigFile(this, session);
}

@Override
protected String absolute(String file) {
return Utils.absoluteOrHome(file, "/" + PREFIX_FS + homeDir.getAbsolutePath());
Expand Down

0 comments on commit 2469c64

Please sign in to comment.