11/13/2022 0 Comments Google drive stream![]() I hope this info is useful to you or anyone else who might come across this. GOOGLE DRIVE STREAM WINDOWSIf the Windows functionality directly correlates to OS X (which I am not at all sure of), I believe the following command should achieve the same thing as the Windows command provided above: cat "/Volumes/GoogleDrive/My Drive/test.txt:" With that being said, I do have a bit of experience in Linux, and I believe OS X uses a lot of the same commands since it is Unix based. I do not personally use Mac, so I'm definitely not the most qualified individual to offer advice on its use. In my opinion, the best way to deal with this is to create an asynchronous loop that sleeps between checks, and then returns the file id once it no longer starts with 'local'. If you read the value of '' and it starts with 'local', this means that it has not yet generated an actual file id. Note: If you are using this in some type of script that is creating new files/folders and quickly reading the '' afterwards, be aware that it can take many seconds for the "real" file id to be generated. The following example would give you the Drive API file ID of the file 'test.txt' residing in the root directory of your Google Drive: type "G:\My Drive\test.txt:" On Windows, an easy way to read this metadata from the command line is by using the 'type' command. - Not sure if this actually a valid identifier (as it does not work on Windows), but since I found it in close proximity to the others, and it may be relevant to your platform, I thought I would provide it just in case.- Provides nearly all of the metadata attached to the file, including the output of nearly all of these other identifiers.- As far as I can tell, this simply returns the email address of the Google account that Drive File Stream is signed into (I tried calling this on a file that is owned by another Google account, but it still returned my email address).- Returns '1' if the file is a 'Google Docs' document or '0' if it is not._drive_id - Drive API 'Team Drive ID' of the file/folder (empty if not in a Team Drive).- Drive API 'File ID' of the file/folder.These are the identifiers I've discovered so far (including descriptions for some of them): This metadata can be accessed by calling 'ReadFile' on any file/folder path that is suffixed with a colon followed by a special identifier describing the metadata one wants to retrieve. GOOGLE DRIVE STREAM DRIVERRegardless, the Drive File Stream driver adds a mechanism for reading special metadata attached to file/folder's located within its file system. Perhaps Google's file system driver is simply emulating the behavior of NTFS alternate data streams. The thing is, the properties of Drive File Stream's virtual drive show it as being partitioned as FAT32 which do not support alternate data streams. I do not know exactly what mechanism allows for the functionality described below, but it is nearly identical in function to the way NTFS alternate data streams work. GOOGLE DRIVE STREAM MAC OSAlthough I found this functionality on a Windows system, there may be similar functionality on Mac OS X. I recently discovered a much more efficient way of retrieving the Drive API 'File ID' of any given file/folder located within your Google Drive File Stream file system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |