AlbertMN / AssistantComputerControl

Control your computer with your Google Home or Amazon Alexa assistant!
MIT License
879 stars 61 forks source link

potential google drive work around #118

Closed minhe7735 closed 3 weeks ago

minhe7735 commented 3 years ago

GDrive seems to cache the file locally to C:\Users\_user_\AppData\Local\Google\DriveFS\_AccountNumber_\content_cache.

Problem1: They're stored behind 2 sub-folders. Solution: set IncludeSubdirectories to true.

Problem2: File doesn't have an extension. Solution: Include all files if extension not specified and do further filtering in eventhandler.

So if people wants to use GDrive, they would have to set: Action folderpath to C:\Users\_user_\AppData\Local\Google\DriveFS\_AccountNumber_\content_cache. and leave Action file extension empty.

For others, they would have to include . in Action file extension. So .txt instead of txt.

Things like this.actionFileExtension.Text and string listeningInText are not changed to include/exclude . in this commit.

AlbertMN commented 2 years ago

Thanks for the PR!

The workaround is a a bit too hacky to be included natively in ACC yet, as it also affects Dropbox and OneDrive and the very way ACChas worked up until now, file-wise. Will have to do some testing and see how we can implement this without breaking anything :)