ReadDirAll returns the list of child inodes.
(_ context.Context)
| 223 | |
| 224 | // ReadDirAll returns the list of child inodes. |
| 225 | func (n *Node) ReadDirAll(_ context.Context) ([]fuse.Dirent, error) { |
| 226 | if !n.isDir() { |
| 227 | return nil, fuse.Errno(syscall.ENOTDIR) |
| 228 | } |
| 229 | return n.cfs.list(n.ID) |
| 230 | } |
| 231 | |
| 232 | // Mkdir creates a directory in 'n'. |
| 233 | // We let the sql query fail if the directory already exists. |