Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement recursive search for folder #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maufirf
Copy link

@maufirf maufirf commented Mar 15, 2024

The original folder search only searches the Drive folder on root, and generates one in root if not found. This changes enables you to search the folder with exact name recursively and only when the folder on the exhaustive search isn't found, it will fall back into making one in the root. The comparison between two strings also changed into comparing two lists of char integer ord() equivalent sequences due to strange behavior of comparing the strings directly which can return false even if the string is exactly the same.

This also includes a reminder that string split using "/" sometimes don't work as windows uses "\", and a little change of the Drive API Query to make sure it looks only for the file that are not trashed in Drive, often times prior to this change it will download trashed files too to local.

Also, a small note that Drive always has wrong timestamp for some reason, it's always hours late compared to the actual time the file got uploaded.

This also includes a reminder that string split using "/" sometimes don't work as windows uses "\\", and a little change of the Drive API Query to make sure it looks only for the file that are not trashed in Drive, often times prior to this change it will download trashed files too to local.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant