Remove threading option from fd
This commit is contained in:
parent
23d077bff1
commit
35f2de1105
@ -7,19 +7,14 @@
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
from os import sched_getaffinity
|
||||
from sys import platform
|
||||
|
||||
_num_threads = len(sched_getaffinity(0)) # have fd run on multiple threads
|
||||
|
||||
# ========== Constants ==========
|
||||
# ----- Commands -----
|
||||
# Options: show hidden files, null terminator, files only
|
||||
# Optional arguments: show vcs files, show every file
|
||||
FIND_CMD = shutil.which("fd")
|
||||
DEFAULT_FIND_OPTS = [
|
||||
"--threads",
|
||||
str(_num_threads),
|
||||
"--hidden",
|
||||
"--print0",
|
||||
"--type",
|
||||
|
Loading…
x
Reference in New Issue
Block a user