From 0e50b59957b9c08feae5dfb7645b882a0f0ae360 Mon Sep 17 00:00:00 2001 From: David Maisonave <47364845+David-Maisonave@users.noreply.github.com> Date: Thu, 25 Jul 2024 02:17:02 -0400 Subject: [PATCH] Remove comments about max file name len --- plugins/RenameFile/renamefile.py | 4 ---- plugins/RenameFile/renamefile_settings.py | 2 -- 2 files changed, 6 deletions(-) diff --git a/plugins/RenameFile/renamefile.py b/plugins/RenameFile/renamefile.py index 108e573..59e04b1 100644 --- a/plugins/RenameFile/renamefile.py +++ b/plugins/RenameFile/renamefile.py @@ -435,8 +435,6 @@ def rename_scene(scene_id, wrapper_styles, stash_directory): metadata_scan_path = original_parent_directory perform_metadata_scan(metadata_scan_path) - # ToDo: Add logic to the below code section so it checks base file length and checks folder length, instead of lumping them altogether. - # Current DB schema allows file folder max length to be 255, and max base filename to be 255 max_filename_length = int(config["max_filename_length"]) if len(new_filename) > max_filename_length: extension_length = len(Path(original_file_path).suffix) @@ -506,7 +504,5 @@ if debugTracing: logger.info("\n*********************************\nEXITING *** # ToDo List - # Add logic to max_filename_length code so it checks base file length and checks folder length, instead of lumping them altogether. # Add logic to update Sqlite DB on file name change, instead of perform_metadata_scan. - # Get variables from the Plugins Settings UI instead of from renamefile_settings.py # Add code to get tags from duplicate filenames \ No newline at end of file diff --git a/plugins/RenameFile/renamefile_settings.py b/plugins/RenameFile/renamefile_settings.py index a8f3ab8..8895a55 100644 --- a/plugins/RenameFile/renamefile_settings.py +++ b/plugins/RenameFile/renamefile_settings.py @@ -26,6 +26,4 @@ config = { "if_notitle_use_org_filename": True, # Warning: Do not recommend setting this to False. # Current Stash DB schema only allows maximum base file name length to be 255 "max_filename_length": 255, - # "max_filefolder_length": 255, # For future useage - # "max_filebase_length": 255, # For future useage }