<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>File-System on Commentary of Takao</title><link>https://takao.blog/es/tags/file-system/</link><description>Recent content in File-System on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>es</language><copyright>Commentary of Takao</copyright><lastBuildDate>Sun, 12 Jul 2026 04:12:51 +0900</lastBuildDate><atom:link href="https://takao.blog/es/tags/file-system/index.xml" rel="self" type="application/rss+xml"/><item><title>File System Access API: Acceso a archivos en el navegador</title><link>https://takao.blog/es/web/file-system-access-api/</link><pubDate>Sat, 28 Dec 2024 00:00:00 +0900</pubDate><guid>https://takao.blog/es/web/file-system-access-api/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/file-system-access-api-es.png" alt="Featured image of post File System Access API: Acceso a archivos en el navegador" /&gt;&lt;p&gt;La File System Access API permite a las aplicaciones web leer, escribir y gestionar archivos y directorios en el sistema local del usuario.&lt;/p&gt;
&lt;h2 id="lectura-de-archivos"&gt;Lectura de archivos
&lt;/h2&gt;&lt;p&gt;&lt;code&gt;window.showOpenFilePicker()&lt;/code&gt; devuelve un FileSystemFileHandle. Lee con &lt;code&gt;getFile()&lt;/code&gt; y &lt;code&gt;file.text()&lt;/code&gt; o &lt;code&gt;file.stream()&lt;/code&gt;. Múltiples archivos con &lt;code&gt;multiple: true&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="escritura-de-archivos"&gt;Escritura de archivos
&lt;/h2&gt;&lt;p&gt;&lt;code&gt;window.showSaveFilePicker()&lt;/code&gt; permite guardar archivos. &lt;code&gt;handle.createWritable()&lt;/code&gt; devuelve un writable stream. Escritura segura con permisos del usuario.&lt;/p&gt;
&lt;h2 id="directorios"&gt;Directorios
&lt;/h2&gt;&lt;p&gt;&lt;code&gt;window.showDirectoryPicker()&lt;/code&gt; permite seleccionar directorios. Iteración con &lt;code&gt;dir.entries()&lt;/code&gt;. Creación de archivos y subdirectorios.&lt;/p&gt;</description></item></channel></rss>