openmobilehub / omh-storage

omh-storage
Apache License 2.0
7 stars 2 forks source link

Add explicit API to create folder in cloud storage #163

Open TranceLove opened 9 months ago

TranceLove commented 9 months ago

Checklist

Is your feature request related to a problem? Please describe. Although Google Drive does not have concrete concept of folders, which is probably the reason why OmhFileRemoteDataSource interface doesn't define method to create a folder; but other cloud storage providers do, e.g Dropbox, Box...

Describe the solution you'd like OmhFileRemoteDataSource should define a createFolder method, that creates a folder beneath the folder of given ID

fun createFolder(parentId: String): OmhFile?

Probably a good idea to return the created Folder when finishes.

Describe alternatives you've considered N/A

Additional context Reference: https://developers.google.com/drive/api/guides/folder?hl=en

dzuluaga commented 3 months ago

Please use OMH 2.0 Cloud Storage SDK instead of OMH 1.0. The create folder functionality still doesn't exist, but please raise a bug to consider this feature. Will grant you access to the repo via EAP in the meantime it's open to the public.

dzuluaga commented 2 months ago

@TranceLove are you planning to raise a bug in https://github.com/openmobilehub/android-omh-storage/issues?

CC - @itsme291