web_sys/features/
gen_Directory.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Directory , typescript_type = "Directory")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `Directory` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `Directory`*"]
14 pub type Directory;
15 # [wasm_bindgen (structural , catch , method , getter , js_class = "Directory" , js_name = name)]
16 #[doc = "Getter for the `name` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/name)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `Directory`*"]
21 pub fn name(this: &Directory) -> Result<::alloc::string::String, JsValue>;
22 # [wasm_bindgen (structural , catch , method , getter , js_class = "Directory" , js_name = path)]
23 #[doc = "Getter for the `path` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/path)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `Directory`*"]
28 pub fn path(this: &Directory) -> Result<::alloc::string::String, JsValue>;
29 # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFiles)]
30 #[doc = "The `getFiles()` method."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFiles)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `Directory`*"]
35 pub fn get_files(this: &Directory) -> Result<::js_sys::Promise, JsValue>;
36 # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFiles)]
37 #[doc = "The `getFiles()` method."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFiles)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `Directory`*"]
42 pub fn get_files_with_recursive_flag(
43 this: &Directory,
44 recursive_flag: bool,
45 ) -> Result<::js_sys::Promise, JsValue>;
46 # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFilesAndDirectories)]
47 #[doc = "The `getFilesAndDirectories()` method."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFilesAndDirectories)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `Directory`*"]
52 pub fn get_files_and_directories(this: &Directory) -> Result<::js_sys::Promise, JsValue>;
53}