chadalon / Studio-One-File-Finder

A cross-platform application made to update sample file locations in Studio One .song files en masse
GNU General Public License v3.0
1 stars 0 forks source link

Scan For Song Folders (and Define Requirements) #5

Closed chadalon closed 1 month ago

chadalon commented 1 month ago

Scan to see if any are in a selected folder. Could use this to display validity of selected folder and/or say something when replace files is ran.

Also need to decide whether the user is allowed to select song folders with subfolders of song folders (and this would be checked in the scan).

chadalon commented 1 month ago

Need to prevent bad stuff from happening if the user has uploaded the wrong folder (probably nothing bad would happen in its current state though. Probably). Something important to add would be individual song folders. That would solve like everything holy crap dude

chadalon commented 1 month ago

FilePreferencesVM and FileUpdater should probably share the same method for finding and/or verifying song files. Right now just to get it working i'm putting it in the class SongFileInfo

chadalon commented 1 month ago

Probably want to go back to just validating the folder exists then checking if .song files exist in the dir upon submit

chadalon commented 1 month ago

Add a try catch to file digging. If they arent in admin mode it'll throw an exception. Also maybe either:

  1. Limit the depth of the songs (3, 4 folders deep max etc) or -
  2. Before it runs have some kind of feedback (either a pop-up (but pls no, these annoying af), or under the button or footer it displays all closest possible ancestor folders of songs)
chadalon commented 1 month ago

Maybe we should just only use song folders, just select all songs in a dir, or make one default and add an option for another.