GMGoogleDrive
GMGoogleDrive copied to clipboard
Pipeline support in upload fuinctions
Continuation of discussion with @mcc85s in #6
mean it actually uploaded most of my files that way, but I think it has the same general error that 7z has when you try to pipeline a folder structure, if the folders are duplicated ( since multiple files in a folder would mean that... ) then it just errors out.
Your upload method does not allow to determine parent of each file. look into this: if cmdlet can support pipeline and you pass this file list
D:\toUoload\file1
D:\ToUpload\file2
D:\ToUpload2\file3
C:\WorkItems\ToUpload3\SomeDirectory\file4
what root folder should be for each file in this list ? How cmdlet should determine it ? If it uploaded all files into one folder I think this wouldn't what you want
But if I support pipeline input this question will be raised
I can aggregate all files in PROCESS{}
block and do uploading in END {}
, trying to determine common root... but this break all the pipeline idea :)
May be just use new Add-GDriveFolder
?