2023-03-22 21:53:06 +00:00
|
|
|
package webfilesystem
|
|
|
|
|
2023-04-12 17:04:25 +00:00
|
|
|
import "github.com/google/uuid"
|
|
|
|
|
2023-03-22 21:53:06 +00:00
|
|
|
type WebFileSystem struct {
|
|
|
|
folders []*Folder
|
|
|
|
}
|
|
|
|
|
|
|
|
func (fs *WebFileSystem) List() []*File {
|
2023-04-12 17:04:25 +00:00
|
|
|
return []*File{{uuid.NewString(), "Kek.kek"}, {uuid.NewString(), "lel.lol"}}
|
2023-03-22 21:53:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Folder struct {
|
|
|
|
files []*File
|
|
|
|
}
|
|
|
|
|
|
|
|
type File struct {
|
2023-04-12 17:04:25 +00:00
|
|
|
Id string
|
2023-03-22 21:53:06 +00:00
|
|
|
FileName string
|
|
|
|
}
|