Add option to force fd to use all available threads when running

This commit is contained in:
Eric Torres 2022-09-13 21:37:33 -07:00
parent 6ebf009321
commit ccb4518e2c

View File

@ -7,6 +7,7 @@
import shutil import shutil
import subprocess import subprocess
from multiprocessing import cpu_count
from sys import platform from sys import platform
# ========== Constants ========== # ========== Constants ==========
@ -21,6 +22,8 @@ DEFAULT_FIND_OPTS = [
"f", "f",
"--type", "--type",
"l", "l",
"--threads",
str(cpu_count()),
] ]
EXTRA_FIND_OPTS = {"no_ignore": "--no-ignore", "no_ignore_vcs": "--no-ignore-vcs"} EXTRA_FIND_OPTS = {"no_ignore": "--no-ignore", "no_ignore_vcs": "--no-ignore-vcs"}