blob: 732030a854e586c870a8406bf746235a959c79cf [file] [log] [blame] [view]
# RemoteDir class
*[<Null safety>](https://dart.dev/null-safety)*
<p>A <a href="../package-fuchsia_vfs_vfs/RemoteDir-class.md">RemoteDir</a> is a directory-like object which holds a channel to a remotely
hosted directory to which requests are delegated when opened.</p>
<p>This class is designed to allow programs to publish remote filesystems
as directories without requiring a separate "mount" step.</p>
**Inheritance**
- Object
- [Vnode](../package-fuchsia_vfs_vfs/Vnode-class.md)
- RemoteDir
## Constructors
[RemoteDir](../package-fuchsia_vfs_vfs/RemoteDir/RemoteDir.md) ([Channel](../zircon/Channel-class.md) channel)
Constructs the <a href="../package-fuchsia_vfs_vfs/RemoteDir-class.md">RemoteDir</a> with a given <code>channel</code> to the remote.
## Properties
##### [hashCode](../package-fuchsia_vfs_vfs/Vnode/hashCode.md) &#8594; int
The hash code for this object.
_<span class="feature read-only">read-only</span><span class="feature inherited">inherited</span>_
##### [runtimeType](../package-fuchsia_vfs_vfs/Vnode/runtimeType.md) &#8594; Type
A representation of the runtime type of the object.
_<span class="feature read-only">read-only</span><span class="feature inherited">inherited</span>_
## Methods
##### [close](../package-fuchsia_vfs_vfs/RemoteDir/close.md)() void
Close this node and all of its bindings and children.
_<span class="feature override">override</span>_
##### [connect](../package-fuchsia_vfs_vfs/RemoteDir/connect.md)(dynamic flags, int mode, [InterfaceRequest](../package-fidl_fidl/InterfaceRequest-class.md) request, [dynamic parentFlags]) int
Connect to this vnode.
All flags and modes are defined in
<a href="https://fuchsia.googlesource.com/fuchsia/+/HEAD/sdk/fidl/fuchsia.io/">https://fuchsia.googlesource.com/fuchsia/+/HEAD/sdk/fidl/fuchsia.io/</a>
_<span class="feature override">override</span>_
##### [filterForNodeReference](../package-fuchsia_vfs_vfs/Vnode/filterForNodeReference.md)(dynamic flags) dynamic
Filter flags when <code>OpenFlags.nodeReference</code> is passed.
This will maintain compatibility with c++ layer.
_<span class="feature inherited">inherited</span>_
##### [inodeNumber](../package-fuchsia_vfs_vfs/RemoteDir/inodeNumber.md)() int
Inode number as defined in fuchsia.io.
_<span class="feature override">override</span>_
##### [noSuchMethod](../package-fuchsia_vfs_vfs/Vnode/noSuchMethod.md)(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
_<span class="feature inherited">inherited</span>_
##### [open](../package-fuchsia_vfs_vfs/RemoteDir/open.md)(dynamic flags, int mode, String path, [InterfaceRequest](../package-fidl_fidl/InterfaceRequest-class.md) request, [dynamic parentFlags]) void
This function is called from <code>fidl_fuchsia_io.Directory#open</code>.
This function parses path and opens correct node.
_<span class="feature override">override</span>_
##### [sendErrorEvent](../package-fuchsia_vfs_vfs/Vnode/sendErrorEvent.md)(dynamic flags, int status, [InterfaceRequest](../package-fidl_fidl/InterfaceRequest-class.md) request) void
Create a error node to send onOpen event with failure status.
_<span class="feature inherited">inherited</span>_
##### [toString](../package-fuchsia_vfs_vfs/Vnode/toString.md)() String
A string representation of this object.
_<span class="feature inherited">inherited</span>_
##### [type](../package-fuchsia_vfs_vfs/RemoteDir/type.md)() dynamic
_<span class="feature override">override</span>_
## Operators
##### [operator ==](../package-fuchsia_vfs_vfs/Vnode/operator_equals.md)(Object other) bool
The equality operator.
_<span class="feature inherited">inherited</span>_