Skip to main content

File.new

File.newpath

Group: Input
Aliases: new file

Documentation

Creates a new file object, pointing to the given path. Relative paths are resolved relative to the directory containing the currently running workflow. Thus, if the workflow is running in the Cloud, the relative paths will be resolved to Cloud files.

Arguments

  • path: The path to the file that you want to create, or a file itself. The latter is a no-op.

Examples

Create a new file pointing to the data.csv file in the project directory.

      import Standard.Base.System.File.File
import Standard.Examples

example_new = File.new Examples.csv_path