shareEmulationFs.go 629 B

1234567891011121314151617181920212223242526272829
  1. package share
  2. /*
  3. Share Emulation File System
  4. This script emulate the shares that a user can access as a
  5. virtual file system mountable by the ArozOS File Manager
  6. */
  7. type ShareVFS struct {
  8. Browse func(string) ([]string, error)
  9. Resolve func(string) (string, error)
  10. }
  11. func NewShareVFSHierarchySpecificConfig() *ShareVFS {
  12. return &ShareVFS{
  13. Browse: GenerateVirtualFileView,
  14. Resolve: ResolveVirtualPathToShareObjectPath,
  15. }
  16. }
  17. func ResolveVirtualPathToShareObjectPath(subpath string) (string, error) {
  18. return "", nil
  19. }
  20. func GenerateVirtualFileView(requestedPath string) ([]string, error) {
  21. return []string{}, nil
  22. }