package org.xbib.io.ftp.fs.spi;

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

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

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