happy-opfs
    Preparing search index...

    Function moveSync

    • Synchronous version of move. Moves a file or directory from one location to another.

      Parameters

      • srcPath: string

        The source path.

      • destPath: string

        The destination path.

      • Optionaloptions: MoveOptions

        Optional move options.

      Returns VoidIOResult

      A VoidIOResult indicating success or failure.

      move for the async version.

      1.8.0

      moveSync('/old/path/file.txt', '/new/path/file.txt')
      .inspect(() => console.log('File moved'));