pub trait IFileSystem: IObject {
Show 33 methods
fn create_file(
&mut self,
attribute: FileAttribute,
size: usize,
path_buf: InFixedPointerBuffer<Path>
) -> Result<()>;
fn delete_file(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<()>;
fn create_directory(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<()>;
fn delete_directory(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<()>;
fn delete_directory_recursively(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<()>;
fn rename_file(
&mut self,
old_path_buf: InFixedPointerBuffer<Path>,
new_path_buf: InFixedPointerBuffer<Path>
) -> Result<()>;
fn rename_directory(
&mut self,
old_path_buf: InFixedPointerBuffer<Path>,
new_path_buf: InFixedPointerBuffer<Path>
) -> Result<()>;
fn get_entry_type(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<DirectoryEntryType>;
fn open_file(
&mut self,
mode: FileOpenMode,
path_buf: InFixedPointerBuffer<Path>
) -> Result<Shared<dyn IFile>>;
fn open_directory(
&mut self,
mode: DirectoryOpenMode,
path_buf: InFixedPointerBuffer<Path>
) -> Result<Shared<dyn IDirectory>>;
fn commit(&mut self) -> Result<()>;
fn get_free_space_size(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<usize>;
fn get_total_space_size(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<usize>;
fn clean_directory_recursively(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<()>;
fn get_file_time_stamp_raw(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<FileTimeStampRaw>;
fn query_entry(
&mut self,
path_buf: InFixedPointerBuffer<Path>,
query_id: QueryId,
in_buf: InNonSecureMapAliasBuffer<u8>,
out_buf: OutNonSecureMapAliasBuffer<u8>
) -> Result<()>;
fn sf_server_impl_create_file(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_delete_file(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_create_directory(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_delete_directory(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_delete_directory_recursively(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_rename_file(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_rename_directory(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_get_entry_type(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_open_file(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_open_directory(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_commit(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_get_free_space_size(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_get_total_space_size(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_clean_directory_recursively(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_get_file_time_stamp_raw(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn sf_server_impl_query_entry(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn get_sf_command_metadata_table(&self) -> CommandMetadataTable { ... }
}