drupflare/worker - v1.0.0
    Preparing search index...

    Function renameFile

    • Moves a file, which Drupal does on nearly every managed upload.

      Implemented as a metadata rename plus a chunk re-key rather than a read-modify-write, so moving a 3 MB file does not pull 3 MB through the isolate. Refuses to clobber silently: file_move() has its own replace semantics and deciding them here would override the caller's.

      Parameters

      • sql: FileSql
      • from: string
      • to: string
      • nowMs: number
      • opts: { overwrite?: boolean } = {}

      Returns boolean