forked from darktable-org/lua-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
sanitize_filename
deekayhd edited this page Mar 29, 2026
·
1 revision
sanitize_filename
make a filename safe to pass as an argument
local df = require "lib/dtutils.file"
local sanitized_filename = df.sanitize_filename(filename)filename - string - a filepath and filename
sanitize_filename places quotes around the filename in an operating system specific manner. The result is safe to pass as an argument to the operating system.
sanitized_filename - string - quoted filename