35 questions
0
votes
1
answer
483
views
How can I save changes to a file selected from the user's computer in JavaScript?
Many modern web applications and PWAs allow users select a file from their hard drive, and then save changes back to that file directly.
An old-school approach was to read the file, make the required ...
2
votes
0
answers
85
views
why File.Open(FileName, FileMode.Open, FileAccess.Read, FileShare.Read) fails? [duplicate]
My goal is to write to and read same file at same time. I cannot understand why File.Open(fileName, FileMode.Open, FileAccess.Read, FileShare.Read) fails because it is being used by another process. ...
0
votes
1
answer
476
views
Access directories which look like files on Mac
I am creating a script for Chrome browser to handle files (using File System Access API). This is totally fine on Windows, but on MAC I have this issue:
The files are stored in folders which look like ...
0
votes
1
answer
412
views
Read ANSI files in Web file-system-access API
I am trying to get files using file-system-access API and it works good using this code:
function Process_Files(files) {
[].map.call(files, async function (file, i) {
if (isDataFile(file....
3
votes
0
answers
298
views
UWP - Access to file system in the LocalState folder
I am developing a UWP app in C#.
I need a SQLite database to store some information, and I place this file in the LocalState folder, which I am sure to have access to.
Everything usually works fine, ...
8
votes
2
answers
5k
views
Access all files within a given folder (The File System Access API)
Can I use the File System Access API (https://web.dev/file-system-access/) to create something like a file explorer within a website (react).
I plan to make a simple online file explorer that lets you ...
1
vote
2
answers
878
views
How do I actually add Filesystem Access API to javascript?
I've found this https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API to allow javascript to access the local file system. I feel really dumb, but I can't find anywhere that talks ...
0
votes
1
answer
253
views
FS access api & React: duplicate entries
I'm trying to build a movie dashboard (something like Plex); the user selects a folder and all the movies he has in the folder show up. The use of the new File System Access API allows me to create ...
0
votes
1
answer
129
views
Getting Images out of the filesystemAPI (using Angular2+)
I play around with the filesystemAPI.
At this moment I can take pictures with ngx.webcam, next I take the Base64, convert it into a blob and then save the blob with filesystemAPI:
const imageName = '...
-3
votes
1
answer
53
views
How does file system access differ between KitKat 4.2 and Nougat 7.1.1?
I have an app HTMLSpyII that I developed a few years ago when I was an absolute beginner at Android programming. Anyway here it is a few years later, I have been away from programming through this ...
5
votes
1
answer
2k
views
What causes DriveInfo.IsReady to be false?
Situation
I'm debugging some legacy code that performs some existence checks on directory paths. First, DirectoryPathA is checked and returned if it exists. This should be the usual case. If that ...
0
votes
0
answers
371
views
Unable to write to a text file (Windows Universal) in c# using File.WriteAllText();
I'm trying to do a very VERY basic operation:
public async Task WriteAsync(string path)
{
// Write to text file
try
{
lines = "Hello, World";
...
0
votes
2
answers
284
views
Where to store user-accessible files in UWP?
I have here a cross platform app, which uses DependencyService to get a file path for my log file. This works fine for ApplicationData.Current.LocalCacheFolder.Path, but now the log file should be ...
1
vote
1
answer
1k
views
Local HTML + JS application with filesystem access
I need to create an offline application with HTML and JS, that can edit and write files (local application folder, but NOT sandboxed browser local storage).
Is there any way to do this, in a ...
0
votes
1
answer
74
views
What file access woke the sleeping disk in Windows?
Every now and then, my sleeping disk wakes up, does what sounds like a single read, and then sits idle until it falls asleep again. Sometimes a program that I am using completely freezes for about 10 ...