IPWorks Cloud 2020 Python Edition

Questions / Feedback?

list_shared_drives Method

Lists shared drives that the current user is a member of.

Syntax

def list_shared_drives() -> None: ...

Remarks

This method lists the shared drives which the current user is a member of.

Calling this method will fire the on_shared_drive_list event once for each shared drive, and will also populate the SharedDrive* properties.

If there are still more shared drives available to list when this method returns, the shared_drive_marker property will be populated. Continue to call this method until shared_drive_marker is empty to accumulate all pages of results in the SharedDrive* properties.

// SharedDriveList event handler.
googledrive.OnSharedDriveList += (s, e) => {
  Console.WriteLine(e.Name);
};

// List all shared drives the current user is a member of.
do {
  googledrive.ListSharedDrives();

  for (int i = 0; i < googledrive.SharedDrives.Count; i++) {
    // Process shared drives here.
  }
} while (!string.IsNullOrEmpty(googledrive.SharedDriveMarker));

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Python Edition - Version 20.0 [Build 8265]