-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This repo is meant to help me explore what...
Files.App.Utils.Cloud.GoogleDriveCloudDetector.GetProviders() currently does, and what we want it to do. In Files.App.Utils.Cloud.GoogleDriveCloudDetector.GetProviders(), first we get a Sqlite database file at the following path: "$($env:localappdata)/Google/DriveFS/root_preference_sqlite.db" Then we copy that database to a temporary folder. Then we run the following SQL queries against the copy: SELECT * FROM roots SELECT * FROM media WHERE fs_type=10 Then we traverse the ITEMs in each of the two response sets and create a new GoogleDrive-type CloudProvider for each ITEM, with the CloudProvider.SyncFolder property set to a (formatted) part of each ITEM's contents. So far, in this scratch repo, I have confirmed that when Google Drive is mounted as a folder, this Sqlite method for getting the mount paths DOESN'T work. "When Google Drive is mounted as a folder" means when you have the "Google Drive streaming location" setting set to "Folder" in Google Drive Preferences. I have also confirmed that when Google Drive is mounted as a folder, the registry method for getting the mount paths ( described here: files-community/Files#15698 (comment) ) DOES work. Next I will test the behavior of each method when Google Drive is mounted as a dedicated drive.
- Loading branch information
Showing
3 changed files
with
89 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Scratch Repo... | ||
... for contributing to [Files](https://github.com/files-community/Files/). | ||
|
||
Clone the repo, open the solution in Visual Studio, click "Start Without | ||
Debugging" (empty green triangle button). | ||
|
||
A window with a button that says "Click Me" should appear. | ||
|
||
Click the button to see information about Google Drive "mount paths" on your | ||
computer, gathered via different methods. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters