forked from Github/Axter-Stash
Remove comments about max file name len
This commit is contained in:
@@ -435,8 +435,6 @@ def rename_scene(scene_id, wrapper_styles, stash_directory):
|
|||||||
metadata_scan_path = original_parent_directory
|
metadata_scan_path = original_parent_directory
|
||||||
perform_metadata_scan(metadata_scan_path)
|
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"])
|
max_filename_length = int(config["max_filename_length"])
|
||||||
if len(new_filename) > max_filename_length:
|
if len(new_filename) > max_filename_length:
|
||||||
extension_length = len(Path(original_file_path).suffix)
|
extension_length = len(Path(original_file_path).suffix)
|
||||||
@@ -506,7 +504,5 @@ if debugTracing: logger.info("\n*********************************\nEXITING ***
|
|||||||
|
|
||||||
|
|
||||||
# ToDo List
|
# 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.
|
# 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
|
# Add code to get tags from duplicate filenames
|
||||||
@@ -26,6 +26,4 @@ config = {
|
|||||||
"if_notitle_use_org_filename": True, # Warning: Do not recommend setting this to False.
|
"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
|
# Current Stash DB schema only allows maximum base file name length to be 255
|
||||||
"max_filename_length": 255,
|
"max_filename_length": 255,
|
||||||
# "max_filefolder_length": 255, # For future useage
|
|
||||||
# "max_filebase_length": 255, # For future useage
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user