Comments (2)
There was a request for symbolic links support (creating & reading links) in WICG/file-system-access#377, but it was closed as being risky to OPFS. I'd like to re-open this request again here.
To clarify, the risks here are not to OPFS. The risk is that symlinks can be created in a user directory (outside of OPFS) which points to files within the OPFS, since this would effectively bypass the requirement to run Safe Browsing checks and add the Mark-of-the-Web to any file saved to a user's directory.
First, fs work seems like it applies beyond OPFS, & fs ought to be able to encompass one of the most common filesystem capabilities.
This repo only pertains to the OPFS (for now, at least). We could consider supporting symlinks exclusively within the OPFS, but I'm not convinced that provides much value, especially since WICG/file-system-access#377 explicitly wants this to "make working with both a user directory and sandboxed files more seamless together"
Could you explain the use case?
from fs.
Could you explain the use case?
I'm trying to write tools to help users deal with git repositories, and there are symlink files in users repos that I need to be able to create on users computers if users are going to have their expected experience. FS gets me most of the way there, but doesn't support this core file type.
The risk is that symlinks can be created in a user directory (outside of OPFS) which points to files within the OPFS, since this would effectively bypass the requirement to run Safe Browsing checks and add the Mark-of-the-Web to any file saved to a user's directory.
Why not have your OS check the symlinked target too? Are there any web specifications for "mark of the web" anywhere we can build off of or work with to help improve this situation? This feels like a pretty baroque concern that shouldn't impede straightforward progress.
from fs.
Related Issues (20)
- proposals/MultipleReadersWriters.md
- File and Directory Watch Functionality for the FileSystem API HOT 1
- Clarify behavior of `createWritable()` when the corresponding file does not exist HOT 1
- Add a `FileSystemHandle.create()` method to create self
- Define File's type better (getFile()) HOT 6
- Define the Bucket File System in terms of the Storage spec
- Why is WirteParams's data both optional and nullable?
- Editorial: string formatting
- Support locking of directory entries
- Require taking a lock to remove an entry HOT 1
- FYI: TPAC 2023 WICG breakout session
- Temporary directories/files HOT 2
- New Modes of Creating a FileSystemWritableFileStream HOT 3
- No explicit file lock release when `write()` throws an exception HOT 3
- Origin Private File System – identification of buckets (similarly to FAS API showSaveFilePicker) HOT 3
- Using F_FULLFSYNC for flush() causing slow performance on Mac HOT 1
- getFile() shouldn't require a copy of the underlying data HOT 5
- Add a FileSystemFileHandle copy method
- Hyuuhhh
- POSIX style path access for OPFS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fs.