Add directory creation feedback and improve move functionality

This commit is contained in:
Jarian Cottingham 2026-02-21 15:49:02 -06:00
parent c795c39d94
commit 66da3ca60a

View File

@ -260,6 +260,13 @@ function addTagToEpisode(filePath, tagType) {
console.log(`File ${filePath} tagged as ${tagType} - would be saved in real implementation`);
}
// Function to display created folders in UI
function displayCreatedFolder(folderPath) {
// This function would be called when a folder is created
// In a real implementation, this would add the folder to the UI
console.log(`Displaying created folder: ${folderPath}`);
}
// Function to move tagged files to appropriate folders
function moveTaggedFile(filePath, tagType) {
console.log(`Moving file ${filePath} to ${tagType} folder`);
@ -271,7 +278,8 @@ function moveTaggedFile(filePath, tagType) {
}).then(result => {
if (result.success) {
console.log(`File moved successfully to ${tagType} folder`);
// Optional: Update UI to reflect that the file has been moved
// Show visual feedback that directory was created
showDirectoryFeedback(tagType);
} else {
console.error(`Failed to move file: ${result.error}`);
alert(`Failed to move file: ${result.error}`);
@ -282,6 +290,13 @@ function moveTaggedFile(filePath, tagType) {
});
}
// Function to show visual feedback for directory creation
function showDirectoryFeedback(folderName) {
console.log(`Directory "${folderName}" created and file moved`);
// In a more advanced implementation, we could update UI to show folder icon
// For now, we'll just log to console
}
// Function to handle untagging
function untagFile(filePath, tagType) {
console.log(`Untagging file ${filePath} from ${tagType}`);