nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit dde7a6c588d1484ad753762689c9aea52f8df8d1
parent a7249e3e56fafd630031d1c68fe795e94f013e90
Author: ojio-san <65758114+ojio-san@users.noreply.github.com>
Date:   Mon,  2 Jun 2025 16:48:18 +0200

nuke plugin - Faster handle files files by extension

- If we're going to handle the file by extension : don't check mimetype first. The mimetype is not necessary in that use case, and may be costly in a slow connection and/or over wifi.

- If we don't handle by extension, mime type will be checked anyway (after handling by extension)
Diffstat:
Mplugins/nuke | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/nuke b/plugins/nuke @@ -545,8 +545,8 @@ handle_bin() { esac } -MIMETYPE="$( file -bL --mime-type -- "${FPATH}" )" handle_extension +MIMETYPE="$( file -bL --mime-type -- "${FPATH}" )" handle_multimedia "${MIMETYPE}" handle_mime "${MIMETYPE}" [ "$BIN" -ne 0 ] && [ -x "${FPATH}" ] && handle_bin