Skip to content

Commit

Permalink
Merge pull request #347 from lmagyar/pr-fix-make-dirs-searchable
Browse files Browse the repository at this point in the history
Make SAF, ROSAF and virtual directories searchable
  • Loading branch information
wolpi authored Jun 8, 2024
2 parents 711b94a + 8792c47 commit acbc809
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions primitiveFTPd/src/org/primftpd/filesystem/RoSafSshFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,10 @@ public SshFile getParentFile() {
public List<SshFile> listSshFiles() {
return listFiles();
}

@Override
public boolean isExecutable() {
logger.trace("[{}] isExecutable()", name);
return isDirectory;
}
}
6 changes: 6 additions & 0 deletions primitiveFTPd/src/org/primftpd/filesystem/SafSshFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ public String getOwner() {
return session.getUsername();
}

@Override
public boolean isExecutable() {
logger.trace("[{}] isExecutable()", name);
return isDirectory;
}

@Override
public SshFile getParentFile() {
logger.trace("[{}] getParentFile()", name);
Expand Down
6 changes: 6 additions & 0 deletions primitiveFTPd/src/org/primftpd/filesystem/VirtualSshFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ public String getOwner() {
return session.getUsername();
}

@Override
public boolean isExecutable() {
logger.trace("[{}] isExecutable()", name);
return delegate != null ? delegate.isExecutable() : true;
}

@Override
public SshFile getParentFile() {
logger.trace("[{}] getParentFile()", name);
Expand Down

0 comments on commit acbc809

Please sign in to comment.