Remove threading option from fd

This commit is contained in:
Eric Torres 2022-04-06 21:04:28 -07:00
parent 23d077bff1
commit 35f2de1105

View File

@ -7,19 +7,14 @@
import shutil import shutil
import subprocess import subprocess
from os import sched_getaffinity
from sys import platform from sys import platform
_num_threads = len(sched_getaffinity(0)) # have fd run on multiple threads
# ========== Constants ========== # ========== Constants ==========
# ----- Commands ----- # ----- Commands -----
# Options: show hidden files, null terminator, files only # Options: show hidden files, null terminator, files only
# Optional arguments: show vcs files, show every file # Optional arguments: show vcs files, show every file
FIND_CMD = shutil.which("fd") FIND_CMD = shutil.which("fd")
DEFAULT_FIND_OPTS = [ DEFAULT_FIND_OPTS = [
"--threads",
str(_num_threads),
"--hidden", "--hidden",
"--print0", "--print0",
"--type", "--type",