pub struct Fat32DirectoryEntryBuilder {
entry: Fat32DirectoryEntryInternal,
}Expand description
Builder for constructing Fat32DirectoryEntryInternal entries
Fields§
§entry: Fat32DirectoryEntryInternalImplementations§
Source§impl Fat32DirectoryEntryBuilder
impl Fat32DirectoryEntryBuilder
Sourcepub fn new_file(filename: &str, cluster: u32, size: u32) -> Self
pub fn new_file(filename: &str, cluster: u32, size: u32) -> Self
Create a new builder for a file entry
Sourcepub fn new_directory(dirname: &str, cluster: u32) -> Self
pub fn new_directory(dirname: &str, cluster: u32) -> Self
Create a new builder for a directory entry
Sourcepub fn attributes(self, attrs: u8) -> Self
pub fn attributes(self, attrs: u8) -> Self
Set attributes
Sourcepub fn build(self) -> Fat32DirectoryEntryInternal
pub fn build(self) -> Fat32DirectoryEntryInternal
Build the final entry
Sourcefn generate_short_filename(filename: &str) -> String
fn generate_short_filename(filename: &str) -> String
Generate a short filename from a long filename