Skip to content

Implement recursive search for folder#8

Open
maufirf wants to merge 1 commit intodtsvetkov1:masterfrom
maufirf:recursive-search
Open

Implement recursive search for folder#8
maufirf wants to merge 1 commit intodtsvetkov1:masterfrom
maufirf:recursive-search

Conversation

@maufirf
Copy link
Copy Markdown

@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