Function: org-attach-id-fallback-folder-format

org-attach-id-fallback-folder-format is a byte-compiled function defined in org-attach.el.gz.

Signature

(org-attach-id-fallback-folder-format ID)

Documentation

Return "__/X/ID" folder path as a dumb fallback.

X is the first character in the ID string.

This function may be appended to org-attach-id-path-function-list to provide a fallback for non-standard ID values that other functions in org-attach-id-path-function-list are unable to handle. For example, when the ID is too short for org-attach-id-ts-folder-format.

However, we recommend to define a more specific function spreading entries over multiple folders. This function may create a large number of entries in a single folder, which may cause issues on some systems.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-attach.el.gz
(defun org-attach-id-fallback-folder-format (id)
  "Return \"__/X/ID\" folder path as a dumb fallback.
X is the first character in the ID string.

This function may be appended to `org-attach-id-path-function-list' to
provide a fallback for non-standard ID values that other functions in
`org-attach-id-path-function-list' are unable to handle.  For example,
when the ID is too short for `org-attach-id-ts-folder-format'.

However, we recommend to define a more specific function spreading
entries over multiple folders.  This function may create a large
number of entries in a single folder, which may cause issues on some
systems."
  (format "__/%s/%s" (substring id 0 1) id))