James Moger
2014-04-11 436bd3f0ecdee282c503a9eb0f7a240b7a68ff49
src/main/java/com/gitblit/transport/ssh/DisabledFilesystemFactory.java
New file
@@ -0,0 +1,26 @@
package com.gitblit.transport.ssh;
import java.io.IOException;
import org.apache.sshd.common.Session;
import org.apache.sshd.common.file.FileSystemFactory;
import org.apache.sshd.common.file.FileSystemView;
import org.apache.sshd.common.file.SshFile;
public class DisabledFilesystemFactory implements FileSystemFactory {
   @Override
   public FileSystemView createFileSystemView(Session session) throws IOException {
      return new FileSystemView() {
         @Override
         public SshFile getFile(SshFile baseDir, String file) {
            return null;
         }
         @Override
         public SshFile getFile(String file) {
            return null;
         }
      };
   }
}