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