package org.apache.sshd.fs.spi;

import org.xbib.files.FileService;
import org.xbib.files.FileServiceProvider;

import java.net.URI;
import java.util.Map;

public class SFTPFileServiceProvider implements FileServiceProvider {
    @Override
    public FileService provide(URI uri, Map<String, ?> env) {
        return uri.isAbsolute() && uri.getScheme().equals("sftp") ?  new SFTPFileService(uri, env) : null;
    }
}
