Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > IFileSystemMoveOptions

IFileSystemMoveOptions interface

The options for FileSystem.move()

Signature:

export interface IFileSystemMoveOptions 

Properties

Property

Modifiers

Type

Description

destinationPath

string

The new path for the object. The path may be absolute or relative.

ensureFolderExists?

boolean

(Optional) If true, will ensure the folder is created before writing the file.

overwrite?

boolean

(Optional) If true, will overwrite the file if it already exists.

sourcePath

string

The path of the existing object to be moved. The path may be absolute or relative.