feat: set path as ID if it's empty
This commit is contained in:
@ -26,3 +26,7 @@ type URL interface {
|
||||
type Thumbnail interface {
|
||||
Thumbnail() string
|
||||
}
|
||||
|
||||
type SetID interface {
|
||||
SetID(id string)
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user