public List<File> GetFolders(
Func<File, bool> predicate
)
Public Function GetFolders (
predicate As Func(Of File, Boolean)
) As List(Of File)
Dim instance As DriveClient
Dim predicate As Func(Of File, Boolean)
Dim returnValue As List(Of File)
returnValue = instance.GetFolders(predicate)
public:
List<File^>^ GetFolders(
Func<File^, bool>^ predicate
)
member GetFolders :
predicate : Func<File, bool> -> List<File>
No code example is currently available or this language may not be supported.
[Missing <param name="predicate"/> documentation for "M:DevCase.ThirdParty.Google.Drive.DriveClient.GetFolders(System.Func{Google.Apis.Drive.v3.Data.File,System.Boolean})"]
No code example is currently available or this language may not be supported.
Dim client As New DriveClient("C:\GoogleSecrets.json", "yourmail@gmail.com", DriveScopes.Full Or DriveScopes.Metadata)
Dim credential As UserCredential = client.Authorize()
Dim predicate As Func(Of Google.Apis.Drive.v3.Data.File, Boolean) =
Function(f As Google.Apis.Drive.v3.Data.File) f.Name.Equals("My Folder Name", StringComparison.OrdinalIgnoreCase)
Dim folders As List(Of Google.Apis.Drive.v3.Data.File) = client.GetFolders(predicate)
Dim folderCount As Integer
For Each folder As Google.Apis.Drive.v3.Data.File In folders
Dim sb As New Global.System.Text.StringBuilder()
With sb
.AppendLine(String.Format("Count: {0}", Interlocked.Increment(folderCount)))
.AppendLine(String.Format("Id: {0}", folder.Id))
.AppendLine(String.Format("Owned By Me?: {0}", folder.OwnedByMe))
.AppendLine(String.Format("Name: {0}", folder.Name))
.AppendLine(String.Format("Size: {0}", folder.Size))
.AppendLine(String.Format("Date Created: {0}", folder.CreatedTime?.ToString()))
.AppendLine(String.Format("Url: {0}", If(folder.WebContentLink, folder.WebViewLink)))
.AppendLine(String.Format("Parent Folder Ids: {0}", String.Join(",", If(folder.Parents, {"nul"}))))
End With
Console.WriteLine(sb.ToString())
Next file
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.