Searched refs:is_dir (Results 1 – 3 of 3) sorted by relevance
71 if item.is_dir.get() == false { in init_grid()199 let is_dir = if let Ok(metadata) = item.metadata() { in refresh_grid() localVariable200 metadata.is_dir() in refresh_grid()205 let asset_item = AssetItemGrid::new(item.file_name().to_str().unwrap(), is_dir); in refresh_grid()242 let is_dir = if let Ok(metadata) = item.metadata() { in refresh_list() localVariable243 metadata.is_dir() in refresh_list()248 let asset_item = AssetItemList::new(item.file_name().to_str().unwrap(), is_dir); in refresh_list()
35 pub is_dir: Cell<bool>, field42 pub fn new(file_name: &str, is_dir: bool) -> Arc<Self> { in new()53 is_dir: Cell::new(is_dir), in new()65 if let Some(icon) = match is_dir { in new()
36 pub fn new(file_name: &str, is_dir: bool) -> Arc<Self> { in new()73 let type_name = if is_dir { "direction" } else { "file" }; in new()