pub async fn export_directory(
dir: &DirectoryProxy,
client_end: ClientEnd<BlockMarker>,
) -> Result<(), Error>
Expand description
Export the contents of a fuchsia.io/Directory as a flat FactoryFS partition on the provided device. All files are extracted from the directory and placed in the FactoryFS partition, with a name that corresponds with the complete path of the file in the original directory, relative to that directory. It takes ownership of the channel to the device, which it assumes speaks fuchsia.hardware.Block, and closes it after all the writes are issued to the block device.