Skip to content

Commit 1476373

Browse files
committed
Change output path from temp to nxc folder
1 parent 4de3f32 commit 1476373

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nxc/modules/spider_plus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def options(self, context, module_options):
491491
EXCLUDE_EXTS Case-insensitive extension filter to exclude (Default: ico,lnk)
492492
EXCLUDE_FILTER Case-insensitive filter to exclude folders/files (Default: print$,ipc$)
493493
MAX_FILE_SIZE Max file size to download (Default: 51200)
494-
OUTPUT_FOLDER Path of the local folder to save files (Default: /tmp/nxc_spider_plus)
494+
OUTPUT_FOLDER Path of the local folder to save files (Default: ~/.nxc/nxc_spider_plus)
495495
"""
496496
self.download_flag = False
497497
if any("DOWNLOAD" in key for key in module_options):
@@ -504,7 +504,7 @@ def options(self, context, module_options):
504504
self.exclude_filter = get_list_from_option(module_options.get("EXCLUDE_FILTER", "print$,ipc$"))
505505
self.exclude_filter = [d.lower() for d in self.exclude_filter] # force case-insensitive
506506
self.max_file_size = int(module_options.get("MAX_FILE_SIZE", 50 * 1024))
507-
self.output_folder = module_options.get("OUTPUT_FOLDER", abspath(join(TMP_PATH, "nxc_spider_plus")))
507+
self.output_folder = module_options.get("OUTPUT_FOLDER", abspath(join(NXC_PATH, "modules/nxc_spider_plus")))
508508

509509
def on_login(self, context, connection):
510510
context.log.display("Started module spidering_plus with the following options:")

0 commit comments

Comments
 (0)