Updated script to support .zst instead of .gz
This commit is contained in:
parent
10c2658bff
commit
0fd62a7391
@ -9,7 +9,7 @@ def read_paths_from_file(file_path):
|
|||||||
return [line.strip() for line in file]
|
return [line.strip() for line in file]
|
||||||
|
|
||||||
def list_files_in_directory(directory):
|
def list_files_in_directory(directory):
|
||||||
return [f.replace("_urls.txt", "") for f in os.listdir(directory) if os.path.isfile(os.path.join(directory, f))]
|
return [f.replace("_urls.txt.zst", ".gz") for f in os.listdir(directory) if os.path.isfile(os.path.join(directory, f))]
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# Get the directory containing wat.paths file
|
# Get the directory containing wat.paths file
|
||||||
|
Loading…
Reference in New Issue
Block a user