Git Product home page Git Product logo

Comments (8)

annevk avatar annevk commented on August 13, 2024 1

Yup.

from fs.

jimmywarting avatar jimmywarting commented on August 13, 2024

Some years ago I create a daisydisk like application entirely built in the web that won't require you to download any application (thanks to drag and drop to asynchronous read the content the chosen directory that you picked)

here is a demo of it: https://jimmywarting.github.io/diezyweb/ and the source too
At least this dose not require any read or write access, All it really needs is some metadata about file size, that's all...

i think it's mostly thanks to entry.getMetadata() that whatwg/fs is missing. I would like revive/modernize this and do something more useful with this now that we have the whatwg/fs but i think the old api still beats this new whatwg/fs in terms of easy access and speed, i don't think promises and filehandle.getFile() would make it any faster. i bet the older api with drag and drop still beats the new fs api

I mean i can drag and drop almost any folder i want into the browser but i can't select it with show showDirectoryPicker - that is a bit odd... i can even drop the hole user directory if i want...

from fs.

annevk avatar annevk commented on August 13, 2024

Did you mean to file this against https://wicg.github.io/file-system-access/? That's not an API this standard describes.

from fs.

jimmywarting avatar jimmywarting commented on August 13, 2024

hmm, yea maybe, i thought it was renamed/moved to this repo instead?

from fs.

annevk avatar annevk commented on August 13, 2024

Only partially, see WICG/file-system-access#342 for details.

from fs.

jimmywarting avatar jimmywarting commented on August 13, 2024

Hmm, so if i understand it right, essentially what is splitet out is

  • the file system (this) of how it should operate with move/rename/create files & folder etc, so it can focus mainly on a eg a sandboxed browser storage from navigator.storage.getDirectory(), so that firefox and safari can implement it without worrying about any security issues about exposing sensitive access?
  • And the other repo is mainly just about prompting and getting access to pick and save files to a user specific directory?

from fs.

jimmywarting avatar jimmywarting commented on August 13, 2024

Ty, that makes it very clear!

Should be mention somewhere in both readme/explainers that file-system-access is not ment to be confused with whatwg/fs.
that: "file-system-access" is just a method of getting permission to use a own path of user own choosing and giving back a whatwg/fs handle back. new feature request like "watching for file changes and recursively create a directory, etc" should be done to whatwg/fs and permission/security scans related things should be done to file-system-access. 🙂

from fs.

annevk avatar annevk commented on August 13, 2024

I suspect that will happen as part of the issue I linked above.

from fs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.