feat: set path as ID if it's empty

This commit is contained in:
Noah Hsu
2022-06-16 20:25:33 +08:00
parent 56c95eadea
commit 52ab1310be
3 changed files with 16 additions and 2 deletions

View File

@ -29,3 +29,7 @@ func (f Object) IsDir() bool {
func (f Object) GetID() string {
return f.ID
}
func (f *Object) SetID(id string) {
f.ID = id
}