All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.galasa.framework.IFileSystem Maven / Gradle / Ivy

There is a newer version: 0.37.0
Show newest version
/*
 * Copyright contributors to the Galasa project
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package dev.galasa.framework;

import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.nio.file.Path;
import java.nio.file.attribute.FileAttribute;
import java.util.List;
import java.util.stream.Stream;

public interface IFileSystem {

    void createDirectories(Path folderPath ) throws IOException;

    void createFile(Path filePath) throws IOException;

    boolean exists(Path pathToFolderOrFile);

    boolean isRegularFile(Path filePath);

    boolean isDirectory(Path filePath);
    
    Stream walk(Path folderPath) throws IOException;

    long size(Path folderPath) throws IOException;

    String probeContentType(Path artifactPath) throws IOException;

    InputStream newInputStream(Path folderPath) throws IOException;

    Path createFile(Path path, FileAttribute... attrs) throws IOException;

    void write(Path rasProperties, byte[] bytes) throws IOException;

    List readLines(URI uri) throws IOException;

    String readString(Path path) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy