-
-
Notifications
You must be signed in to change notification settings - Fork 19
Description
DETAILS
These are two features that I had created/edited into an older version, but I recently updated to the latest version due to API issues and to have a more up to date version. The previous version I was using was ver.0.7.0. If possible I'd like for these features to be implemented into the current master version.
Feature 1
Feature to either create a new folder or rename the attachments folder using the same properties in Post that is used for post_dirname_format with the .env.
..
├─ content.txt
├─ external_links.txt
├─ {}.png (file)
├─ post.json (metadata)
├─ attachments -> Rename this folder using Post properties (ex; {title})
├─ 1.png
└─ 2.png
For example, in the .env having:
KTOOLBOX_JOB__POST_DIRNAME_FORMAT={id} - ({published})
KTOOLBOX_JOB__POST_STRUCTURE__ATTACHMENTS_????={title} # <- New Feature
This would have the very top folder named with the creator ID
├─Then a subfolder named "ID - Published Date"
├─Then another subfolder named "Title_of_the_post"
..
Creator_Name
├─123456 - (2025-09-12)
├── content.txt
├── external_links.txt
├── {}.png (file)
├── post.json (metadata)
├── Title_of_Post -> Renamed using Post properties: {title}
├─ 1.png
└─ 2.png
Feature 2
A change or addition to sequential_filename to have the original name be kept as a property OR a sequential indentation to the original name if enabled. This would allow to keep the original file name and have it be indented with the sequential order.
For example:
With the .env containing:
KTOOLBOX_JOB__SEQUENTIAL_FILENAME=True
Currently the files will be saved as:
├─ 1.png
└─ 2.png
But with the change to the env
With the .env containing:
KTOOLBOX_JOB__FILENAME_FORMAT={}_{filename} # <- "filename" being the example property of the original filename
OR
KTOOLBOX_JOB__SEQUENTIAL_FILENAME_INDENTATION=True # <- Having this be true will only indent the original filename with the sequential order: 1_Filename.png, 2_Filename.png, etc;
They would be saved as:
├─ 1_OriginalFileName.png
└─ 2_OriginalFileName.png
etc;