Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Native File System API の紹介と Zip を作る Web サービスを作った話
Search
KoharaKazuya
September 30, 2020
Programming
180
0
Share
Native File System API の紹介と Zip を作る Web サービスを作った話
PWA Night OSAKA vol.6
KoharaKazuya
September 30, 2020
More Decks by KoharaKazuya
See All by KoharaKazuya
グラフィカルに URL を編集できるサービスを作った
koharakazuya
1
16k
Go でのエラー生成パターン
koharakazuya
0
16k
pickpatch を作った話と仕組みの解説
koharakazuya
0
54
Other Decks in Programming
See All in Programming
空間オーディオの活用
objectiveaudio
0
120
How We Practice Exploratory Testing in Iterative Development( #scrumniigata ) / 反復開発の中で、探索的テストをどう実施しているか
teyamagu
PRO
3
600
Agent Skills を社内で育てる仕組み作り
jackchuka
0
260
Import assertionsが消えた日~ECMAScriptの仕様はどう決まり、なぜ覆るのか~
bicstone
2
170
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
140
The Less-Told Story of Socket Timeouts
coe401_
3
930
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
210
GitHubCopilotCLIをはじめよう.pdf
htkym
0
310
How Swift's Type System Guides AI Agents
koher
0
330
tRPCの概要と少しだけパフォーマンス
misoton665
2
260
t *testing.T は どこからやってくるの?
otakakot
1
880
KMP × Kotlin 2.3 - How Android Got Slower While iOS Builds Improved by 47%
rio432
0
110
Featured
See All Featured
Writing Fast Ruby
sferik
630
63k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
230
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
290
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
Ruling the World: When Life Gets Gamed
codingconduct
0
220
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
130
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
54k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Producing Creativity
orderedlist
PRO
348
40k
Building Adaptive Systems
keathley
44
3k
Transcript
Native File System API の紹介 と Zip を作る Web サービスを
作った話 2020/09/30 PWA Night OSAKA vol.6 ⼩原 ⼀哉
⾃⼰紹介 ⼩原 ⼀哉 (こはら かず や) ウェブエンジニア フェンリル株式会社 @KoharaKazuya 2
2
以前の発表 https://speakerdeck.com/koharakazuya/gurahuikaruni- url-wobian-ji-dekirusabisuwozuo-tuta より 3 3
Native File System API とは Web からファイルの読み書きができる ダウンロード&アップロードではなく直接 特定ディレクトリ以下をフルにコントロール 参考:
The Native File System API: simplifying access to local files 4 4
対応状況は? Chrome 86 (2020/10/6) から! 他はまだ。仕様の標準化もされていない。 参考: Can I use...
Support tables for HTML5, CSS3, etc 5 5
⾯⽩そう! → なんか作ろう! 6 6
作ったものの紹介 (デモ) https://zipweb.koharakazuya.net/ 7 7
使ったもの Native File System API の Ponyfill として Browser- NativeFS
というライブラリがある Native File System API がサポートされていない場合は、 <input webkitdirectory> , <a download> などを 使って代替する 参考: Reading and writing files and directories with the browser-nativefs library 8 8
つまづいた 9 9
つまづいて気付いた あれ、Zip の作成だとアップロード&ダウンロードでいいから Native File Sytem API いらないじゃん……。 → Browser-NativeFS
の代替実装部分だけを利⽤するように 10 10
その他 今回は 5 分の LT なので、話しきれなかった細かい部分は記事 としてまとめた。 ↓ Zip を作る
Web サービスを作った | Zenn 11 11
まとめ Native File System API を紹介した Browser-NativeFS を紹介した Zip Web
というサービスを作った Zip Web が Native File System API の利⽤例として不適切 だとわかった 12 12