Baseline 2023
Newly available
å®å ¨ãªã³ã³ããã¹ãç¨: ãã®æ©è½ã¯ä¸é¨ã¾ãã¯ãã¹ã¦ã®å¯¾å¿ãã¦ãããã©ã¦ã¶ã¼ã«ããã¦ãå®å ¨ãªã³ã³ããã¹ã (HTTPS) ã§ã®ã¿å©ç¨ã§ãã¾ãã
FileSystemDirectoryHandle
ã¤ã³ã¿ã¼ãã§ã¤ã¹ã® resolve()
ã¡ã½ããã¯ã親ãã³ãã«ããæå®ã®åã¨ã³ããªã¼ã¸ã®ãã£ã¬ã¯ããªã¼åã® Array
ãè¿ãã¾ããæå®ãããåã¨ã³ããªã¼ãé
åã®æå¾ã®è¦ç´ ã«ãªãã¾ãã
resolve(possibleDescendant)
弿° è¿å¤
æååã® Array
ãã¾ã㯠possibleDescendant
ããã® FileSystemDirectoryHandle
ã®åå«ã§ãªãã¨ã㯠null
ã§è§£æ±ºãã Promise
ãè¿ãã¾ãã
ä¾å¤ã¯æãããã¾ããã
ä¾ä»¥ä¸ã®éåæé¢æ°ã¯ãresolve()
ãç¨ãã¦ã鏿ããããã¡ã¤ã«ã®æå®ã®ãã£ã¬ã¯ããªã¼ãã³ãã«ãåºæºã¨ããç¸å¯¾ãã¹ãåå¾ãã¾ãã
async function returnPathDirectories(directoryHandle) {
// ãã¡ã¤ã«ããã«ã¼ãéãããã¡ã¤ã«ãã³ãã«ãå¾ã
const [handle] = await self.showOpenFilePicker();
if (!handle) {
// ã¦ã¼ã¶ã¼ããã£ã³ã»ã«ãããããã¡ã¤ã«ãéãã®ã«å¤±æãã
return;
}
// ãã³ãã«ããã£ã¬ã¯ããªã¼ãã³ãã«å
ã«åå¨ãããã確èªãã
const relativePaths = await directoryHandle.resolve(handle);
if (relativePaths === null) {
// ãã£ã¬ã¯ããªã¼ãã³ãã«å
ã«åå¨ããªã
} else {
// relativePath ã¯ç¸å¯¾ãã¹ã表ãååã®é
å
for (const name of relativePaths) {
// åã¨ã³ããªã¼ãè¨é²ãã
console.log(name);
}
}
}
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§ é¢é£æ
å ±
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4