folderstructure

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package folderstructure provides functions for the folder strucure of output data

Index

Constants

This section is empty.

Variables

View Source
var OutputFolderName = "output"

The name of the (top level) output folder

View Source
var OverwriteExisting bool = false

OverwriteExisting determines whether existing files should be overwritten (true) or left untouched (false)

Functions

func FileSystemEscape

func FileSystemEscape(input string) string

FileSystemEscape removes all illegal characters from the input string so that it's safe to use for file system operations

func GetAndCreateOutputFolder

func GetAndCreateOutputFolder(exp experiment.Experiment, subfolders ...string) (string, error)

GetOutputFolder returns the relative path of the output folder and creates the folder if it does not exist

func GetOutputFolder

func GetOutputFolder(exp experiment.Experiment, subfolders ...string) string

GetOutputFolder returns the relative path of the output folder

func MayCreatePath

func MayCreatePath(path string) bool

MayCreateFile returns whether a file may be created/overwritten or should not be touched.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL