• Moves a file to a new location

    Parameters

    • sourcePath: string

      Source file path

    • destinationPath: string

      Destination file path

    Returns Promise<OperationResult<void>>

    OperationResult indicating success or failure

    const result = await moveFile('/source/file.txt', '/destination/file.txt');
    if (result.success) {
    console.log('File moved successfully');
    }