-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script will now use one socks5 connection. This is mainly to do on my end with my custom script. OFRenamer isn't finished yet. Don't run it.
- Loading branch information
1 parent
440596d
commit 6a49a3e
Showing
3 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
import json | ||
# WORK IN PROGRESS | ||
directory = "" | ||
|
||
models = os.listdir(directory) | ||
print(models) | ||
for model in models: | ||
metadata_directory = os.path.join(directory, model, "Metadata") | ||
folders = os.listdir(metadata_directory) | ||
for metadata_file in folders: | ||
metadata_filepath = os.path.join(metadata_directory, metadata_file) | ||
metadatas = json.load(open(metadata_filepath))[0]["valid"] | ||
for metadata in metadatas: | ||
for folder in metadata: | ||
model_folder = folder["directory"] | ||
filename = folder["filename"] | ||
filepath = os.path.join(model_folder, filename) | ||
if os.path.isfile(filepath): | ||
else: | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters