1234567891011121314151617181920212223242526272829 |
- package share
- /*
- Share Emulation File System
- This script emulate the shares that a user can access as a
- virtual file system mountable by the ArozOS File Manager
- */
- type ShareVFS struct {
- Browse func(string) ([]string, error)
- Resolve func(string) (string, error)
- }
- func NewShareVFSHierarchySpecificConfig() *ShareVFS {
- return &ShareVFS{
- Browse: GenerateVirtualFileView,
- Resolve: ResolveVirtualPathToShareObjectPath,
- }
- }
- func ResolveVirtualPathToShareObjectPath(subpath string) (string, error) {
- return "", nil
- }
- func GenerateVirtualFileView(requestedPath string) ([]string, error) {
- return []string{}, nil
- }
|