Discuss this help topic in SecureBlackbox Forum
Clouds: Create folder
To create a new folder
- Obtain the instance of TElGoogleDriveFolder
for the parent folder, in which you need to create a new folder.
- Use TElGoogleDriveFolder.CreateFolder() method and pass it
the name of the new folder (mandatory) and description (optional).
If the new folder is created successfully, the method returns an instance of
TElGoogleDriveFolder for the newly created folder.
As Google Drive allows a folder to contain several subfolders with the same name, the name for a new subfolder is not required to be unique in the parent folder.
Thus, object names must not be used as unique identifiers.
Remember to call TElGoogleDriveFolder.Release() method when you don't need the folder object anymore.
C#:
TElGoogleDriveDataStorage storage = new TElGoogleDriveDataStorage();
...
TElGoogleDriveFolder root = storage.AcquireObject() as TElGoogleDriveFolder;
TElGoogleDriveFolder newFolder = root.CreateFolder("New Folder", String.Empty);
Console.WriteLine("Created: {0} ({1}, id: {2})",
newFolder.Name, newFolder.Kind, newFolder.ID);
newFolder.Release();
How To articles about Google Drive cloud
Discuss this help topic in SecureBlackbox Forum