dev.galasa.framework.IFileSystem Maven / Gradle / Ivy
/*
* 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