Skip to main content

A package that helps resolve relative Google Drive paths to absolute system paths that refer to the Google drive mount location.

Project description

gdrive_resolver

Different systems may mount Google Drive to different locations. This package automatically finds the mounted Google Drive directory so that it can resolve Google Drive relative paths to absolute system paths.

Example Usage:

from gdriveresolver import GDriveResolver

gdrive_resolver = GDriveResolver()
absolute_path: str = gdrive_resolver.resolve('my/path/in/google/drive/myfile.txt')

Troubleshooting

If GoogleDriveResolver cannot resolve your Google Drive path, it may not be searching at a sufficient depth. You can increase the depth by passing the max_depth parameter to the constructor.

from gdriveresolver import GDriveResolver

absolute_path = GDriveResolver(max_depth=10).resolve('my/path/in/google/drive/myfile.txt')
print(absolute_path)

If it still cannot resolve your path, please ensure that your Google Drive is mounted, accessible, and that it is called "Google Drive" or "GoogleDrive" in your system.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gdriveresolver-0.0.14.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gdriveresolver-0.0.14-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file gdriveresolver-0.0.14.tar.gz.

File metadata

  • Download URL: gdriveresolver-0.0.14.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for gdriveresolver-0.0.14.tar.gz
Algorithm Hash digest
SHA256 39495aeef070f187da6d0952c6897ab0c1a2c8ca1feb7b22cfcd6977cf1d700d
MD5 8f0ac114f17e4418e8c6434a9b7704b5
BLAKE2b-256 310ece00f76a18a3fe838da786ff002f9fd83a33fcafd5f05402c07fdce54f0d

See more details on using hashes here.

File details

Details for the file gdriveresolver-0.0.14-py3-none-any.whl.

File metadata

File hashes

Hashes for gdriveresolver-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 064c67349307d45dd02df73289414a4f1cd1de9e2a963f5910170062b1c69a43
MD5 0624d436de0bde7c56a3ecb74b5c7470
BLAKE2b-256 3c22a525a78ab18eebeab225947f392ded11ccbffcfd7f07523723b46f466b71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page