Function: f-move

f-move is a byte-compiled function defined in f.el.

Signature

(f-move FROM TO)

Documentation

Move or rename FROM to TO.

If TO is a directory name, move FROM into TO.

Other relevant functions are documented in the f group.

Shortdoc

;; f
(f-move "path/to/file.txt" "new-file.txt")
    -> [it depends]
  (f-move "path/to/file.txt" "other/path")
    -> [it depends]

Source Code

;; Defined in ~/.emacs.d/elpa/f-20241003.1131/f.el
(defun f-move (from to)
  "Move or rename FROM to TO.
If TO is a directory name, move FROM into TO."
  (f--destructive to (rename-file from to t)))