Skip to main content

web_sys/features/
gen_Directory.rs

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