-
Notifications
You must be signed in to change notification settings - Fork 2
File
Returns true
if a file exists at the specified path.
filePath
: The path to the file.
Returns true
if a folder exists at the specified path.
directory
: The path to the folder.
Returns true
if either a file or a folder exists at the specified path.
path
: The path to the file or folder.
Used to create a new file with some content if the file doesn't exist.
filePath
: The path to the file that should be created.
content
: The content that should be written to the file.
Used to write to a file. If the file exists, it is overwritten. If it doesn't exist, the file is created.
filePath
: The path to the file that should be created.
content
: The content that should be written to the file.
Create a folder at the specified path, if it doesn't already exist.
directory
: The path to the folder that should be created.
Delete a file or folder, if it exists.
path
: The path of the file that should be deleted.
Zip a folder or a file.
pathToCompress
: The path to the file or folder to compress.
destinationPath
: The path where the zip file should be placed.
optimalCompression
(optional): If true
, the archive is compressed as much as possible. This is a trade-off between compression speed and archive size. Defaults to true
.
Unzip an archive.
zipFile
: The path of the archive to unpack.
destinationPath
: The folder in which the unpacked archive should be placed.
Download a file.
downloadUrl
: The URL to download the file from.
outputFile
: The file to which the downloaded file should be output.
Copy a file to a new location.
fromPath
: The path of the file to copy.
toPath
: The path to copy the file to. Can also be a file name.
force
: If true
, copy the file to the destination even if the file already exists. Defaults to false
.
recurse
: Whether to copy subfolders and contents or not. Defaults to true
.
Rename a file.
path
: The path to the file or folder that should be renamed.
newName
: The new name for the file or folder.
force
: If true
, change the file- or folder's name even if it is set to read only. Defaults to false
.
- Source Control
- Building and Testing
- Messaging
- Shipping
- Miscellaneous
- Example Pipelines