Function: dired-async--skip-async-p

dired-async--skip-async-p is a natively compiled function defined in dired-async.el.

Signature

(dired-async--skip-async-p FILE-CREATOR FILE NAME-CONSTRUCTOR &optional ATTRS)

Documentation

Return non-nil if we should skip async for FILE.

See dired-create-files for FILE-CREATOR and NAME-CONSTRUCTOR.

Source Code

;; Defined in /nix/store/jhxqyr2zk061dl3wd3vm38lw3zin47b9-emacs-packages-deps/share/emacs/site-lisp/elpa/async-20260729.1431/dired-async.el
(defun dired-async--skip-async-p (file-creator file name-constructor &optional attrs)
  "Return non-nil if we should skip async for FILE.
See `dired-create-files' for FILE-CREATOR and NAME-CONSTRUCTOR."
  ;; Skip async for small files.
  (or (dired-async--small-file-p file attrs)
      ;; Also skip async for same device renames.
      (and (eq file-creator 'dired-rename-file)
           (let ((new (funcall name-constructor file)))
             (dired-async--same-device-p file (file-name-directory new))))))