1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = FileSystemEntry , extends = :: js_sys :: Object , js_name = FileSystemDirectoryEntry , typescript_type = "FileSystemDirectoryEntry")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `FileSystemDirectoryEntry` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"]
13     pub type FileSystemDirectoryEntry;
14     #[cfg(feature = "FileSystemDirectoryReader")]
15     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = createReader)]
16     #[doc = "The `createReader()` method."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/createReader)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemDirectoryReader`*"]
create_reader(this: &FileSystemDirectoryEntry) -> FileSystemDirectoryReader21     pub fn create_reader(this: &FileSystemDirectoryEntry) -> FileSystemDirectoryReader;
22     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)]
23     #[doc = "The `getDirectory()` method."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"]
get_directory(this: &FileSystemDirectoryEntry)28     pub fn get_directory(this: &FileSystemDirectoryEntry);
29     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)]
30     #[doc = "The `getDirectory()` method."]
31     #[doc = ""]
32     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"]
33     #[doc = ""]
34     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"]
get_directory_with_path(this: &FileSystemDirectoryEntry, path: Option<&str>)35     pub fn get_directory_with_path(this: &FileSystemDirectoryEntry, path: Option<&str>);
36     #[cfg(feature = "FileSystemFlags")]
37     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)]
38     #[doc = "The `getDirectory()` method."]
39     #[doc = ""]
40     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"]
41     #[doc = ""]
42     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"]
get_directory_with_path_and_options( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, )43     pub fn get_directory_with_path_and_options(
44         this: &FileSystemDirectoryEntry,
45         path: Option<&str>,
46         options: &FileSystemFlags,
47     );
48     #[cfg(feature = "FileSystemFlags")]
49     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)]
50     #[doc = "The `getDirectory()` method."]
51     #[doc = ""]
52     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"]
53     #[doc = ""]
54     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"]
get_directory_with_path_and_options_and_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &::js_sys::Function, )55     pub fn get_directory_with_path_and_options_and_callback(
56         this: &FileSystemDirectoryEntry,
57         path: Option<&str>,
58         options: &FileSystemFlags,
59         success_callback: &::js_sys::Function,
60     );
61     #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))]
62     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)]
63     #[doc = "The `getDirectory()` method."]
64     #[doc = ""]
65     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"]
66     #[doc = ""]
67     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"]
get_directory_with_path_and_options_and_file_system_entry_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &FileSystemEntryCallback, )68     pub fn get_directory_with_path_and_options_and_file_system_entry_callback(
69         this: &FileSystemDirectoryEntry,
70         path: Option<&str>,
71         options: &FileSystemFlags,
72         success_callback: &FileSystemEntryCallback,
73     );
74     #[cfg(feature = "FileSystemFlags")]
75     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)]
76     #[doc = "The `getDirectory()` method."]
77     #[doc = ""]
78     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"]
79     #[doc = ""]
80     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"]
get_directory_with_path_and_options_and_callback_and_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &::js_sys::Function, error_callback: &::js_sys::Function, )81     pub fn get_directory_with_path_and_options_and_callback_and_callback(
82         this: &FileSystemDirectoryEntry,
83         path: Option<&str>,
84         options: &FileSystemFlags,
85         success_callback: &::js_sys::Function,
86         error_callback: &::js_sys::Function,
87     );
88     #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))]
89     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)]
90     #[doc = "The `getDirectory()` method."]
91     #[doc = ""]
92     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"]
93     #[doc = ""]
94     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"]
get_directory_with_path_and_options_and_file_system_entry_callback_and_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &FileSystemEntryCallback, error_callback: &::js_sys::Function, )95     pub fn get_directory_with_path_and_options_and_file_system_entry_callback_and_callback(
96         this: &FileSystemDirectoryEntry,
97         path: Option<&str>,
98         options: &FileSystemFlags,
99         success_callback: &FileSystemEntryCallback,
100         error_callback: &::js_sys::Function,
101     );
102     #[cfg(all(feature = "ErrorCallback", feature = "FileSystemFlags",))]
103     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)]
104     #[doc = "The `getDirectory()` method."]
105     #[doc = ""]
106     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"]
107     #[doc = ""]
108     #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryEntry`, `FileSystemFlags`*"]
get_directory_with_path_and_options_and_callback_and_error_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &::js_sys::Function, error_callback: &ErrorCallback, )109     pub fn get_directory_with_path_and_options_and_callback_and_error_callback(
110         this: &FileSystemDirectoryEntry,
111         path: Option<&str>,
112         options: &FileSystemFlags,
113         success_callback: &::js_sys::Function,
114         error_callback: &ErrorCallback,
115     );
116     #[cfg(all(
117         feature = "ErrorCallback",
118         feature = "FileSystemEntryCallback",
119         feature = "FileSystemFlags",
120     ))]
121     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)]
122     #[doc = "The `getDirectory()` method."]
123     #[doc = ""]
124     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"]
125     #[doc = ""]
126     #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"]
get_directory_with_path_and_options_and_file_system_entry_callback_and_error_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &FileSystemEntryCallback, error_callback: &ErrorCallback, )127     pub fn get_directory_with_path_and_options_and_file_system_entry_callback_and_error_callback(
128         this: &FileSystemDirectoryEntry,
129         path: Option<&str>,
130         options: &FileSystemFlags,
131         success_callback: &FileSystemEntryCallback,
132         error_callback: &ErrorCallback,
133     );
134     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)]
135     #[doc = "The `getFile()` method."]
136     #[doc = ""]
137     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"]
138     #[doc = ""]
139     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"]
get_file(this: &FileSystemDirectoryEntry)140     pub fn get_file(this: &FileSystemDirectoryEntry);
141     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)]
142     #[doc = "The `getFile()` method."]
143     #[doc = ""]
144     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"]
145     #[doc = ""]
146     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"]
get_file_with_path(this: &FileSystemDirectoryEntry, path: Option<&str>)147     pub fn get_file_with_path(this: &FileSystemDirectoryEntry, path: Option<&str>);
148     #[cfg(feature = "FileSystemFlags")]
149     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)]
150     #[doc = "The `getFile()` method."]
151     #[doc = ""]
152     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"]
153     #[doc = ""]
154     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"]
get_file_with_path_and_options( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, )155     pub fn get_file_with_path_and_options(
156         this: &FileSystemDirectoryEntry,
157         path: Option<&str>,
158         options: &FileSystemFlags,
159     );
160     #[cfg(feature = "FileSystemFlags")]
161     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)]
162     #[doc = "The `getFile()` method."]
163     #[doc = ""]
164     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"]
165     #[doc = ""]
166     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"]
get_file_with_path_and_options_and_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &::js_sys::Function, )167     pub fn get_file_with_path_and_options_and_callback(
168         this: &FileSystemDirectoryEntry,
169         path: Option<&str>,
170         options: &FileSystemFlags,
171         success_callback: &::js_sys::Function,
172     );
173     #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))]
174     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)]
175     #[doc = "The `getFile()` method."]
176     #[doc = ""]
177     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"]
178     #[doc = ""]
179     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"]
get_file_with_path_and_options_and_file_system_entry_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &FileSystemEntryCallback, )180     pub fn get_file_with_path_and_options_and_file_system_entry_callback(
181         this: &FileSystemDirectoryEntry,
182         path: Option<&str>,
183         options: &FileSystemFlags,
184         success_callback: &FileSystemEntryCallback,
185     );
186     #[cfg(feature = "FileSystemFlags")]
187     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)]
188     #[doc = "The `getFile()` method."]
189     #[doc = ""]
190     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"]
191     #[doc = ""]
192     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"]
get_file_with_path_and_options_and_callback_and_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &::js_sys::Function, error_callback: &::js_sys::Function, )193     pub fn get_file_with_path_and_options_and_callback_and_callback(
194         this: &FileSystemDirectoryEntry,
195         path: Option<&str>,
196         options: &FileSystemFlags,
197         success_callback: &::js_sys::Function,
198         error_callback: &::js_sys::Function,
199     );
200     #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))]
201     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)]
202     #[doc = "The `getFile()` method."]
203     #[doc = ""]
204     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"]
205     #[doc = ""]
206     #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"]
get_file_with_path_and_options_and_file_system_entry_callback_and_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &FileSystemEntryCallback, error_callback: &::js_sys::Function, )207     pub fn get_file_with_path_and_options_and_file_system_entry_callback_and_callback(
208         this: &FileSystemDirectoryEntry,
209         path: Option<&str>,
210         options: &FileSystemFlags,
211         success_callback: &FileSystemEntryCallback,
212         error_callback: &::js_sys::Function,
213     );
214     #[cfg(all(feature = "ErrorCallback", feature = "FileSystemFlags",))]
215     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)]
216     #[doc = "The `getFile()` method."]
217     #[doc = ""]
218     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"]
219     #[doc = ""]
220     #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryEntry`, `FileSystemFlags`*"]
get_file_with_path_and_options_and_callback_and_error_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &::js_sys::Function, error_callback: &ErrorCallback, )221     pub fn get_file_with_path_and_options_and_callback_and_error_callback(
222         this: &FileSystemDirectoryEntry,
223         path: Option<&str>,
224         options: &FileSystemFlags,
225         success_callback: &::js_sys::Function,
226         error_callback: &ErrorCallback,
227     );
228     #[cfg(all(
229         feature = "ErrorCallback",
230         feature = "FileSystemEntryCallback",
231         feature = "FileSystemFlags",
232     ))]
233     # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)]
234     #[doc = "The `getFile()` method."]
235     #[doc = ""]
236     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"]
237     #[doc = ""]
238     #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"]
get_file_with_path_and_options_and_file_system_entry_callback_and_error_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &FileSystemEntryCallback, error_callback: &ErrorCallback, )239     pub fn get_file_with_path_and_options_and_file_system_entry_callback_and_error_callback(
240         this: &FileSystemDirectoryEntry,
241         path: Option<&str>,
242         options: &FileSystemFlags,
243         success_callback: &FileSystemEntryCallback,
244         error_callback: &ErrorCallback,
245     );
246 }
247