mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-02 16:20:36 -05:00
first version of xsearch
This commit is contained in:
14
scripts/file_names_to_list.py
Normal file
14
scripts/file_names_to_list.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import glob
|
||||
import os
|
||||
|
||||
script_dir = os.path.dirname(__file__)
|
||||
rel_path = "memCakes/*.png"
|
||||
abs_file_path = os.path.join(script_dir, rel_path)
|
||||
|
||||
file_names = []
|
||||
|
||||
|
||||
for filepath in glob.iglob(abs_file_path):
|
||||
file_names.append(filepath.split("\\")[-1])
|
||||
|
||||
print(file_names)
|
||||
Reference in New Issue
Block a user