Remove comments about max file name len

This commit is contained in:
David Maisonave
2024-07-25 02:17:02 -04:00
parent 117aab0ef2
commit 0e50b59957
2 changed files with 0 additions and 6 deletions

View File

@@ -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

View File

@@ -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
}