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