Questions tagged [filesystem-access]

Questions about programmatically accessing a file system. For questions about accessing individual files, use [file-access]. Use either of these in conjunction with the applicable tag such as [contention], [security] or [capacity] to indicate the focus of the question.

Questions about programmatically accessing a file system. For questions about accessing individual files, use . Use either of these in conjunction with the applicable tag such as , or to indicate the focus of the question.

35 questions
1
vote
1 answer

Is there a way to dynamically access files and folders hosted on my Github Pages server?

I understand that the web takes major security measures to prevent programs from accessing files on client computers. What I want to do is use AJAX or some other functionality to dynamically access file and folder names in my own public directory…
Frank
  • 2,050
  • 6
  • 22
  • 40
1
vote
0 answers

Automatically save canvas png to local file system

I am a web developer and I have never built anything for Desktop. I am working on a new project where I'm doing some canvas rendering in real time. It works just fine in low-res but I want to do it in high-res and save every frame as a PNG file on…
tim-we
  • 1,219
  • 10
  • 16
1
vote
2 answers

Redirect file access

Is there a way to monitor and redirect file access of a thread or process? For example a thread wants to read /etc/mysql/my.cnf and I want to change the access to ~/my.cnf or if I run touch /etc/test.config I want the file to be redirected to…
Koogle
  • 401
  • 4
  • 9
1
vote
1 answer

Writing a PHP plugin system with limited system access

So I'm thinking of building a CMS, sort of, and I'd like it to be designed so that plugins can extend its functionality easily (I'm working on a hook system and language setup as well). Here's the tricky part: rather than an individually packaged…
M Miller
  • 5,364
  • 9
  • 43
  • 65
0
votes
1 answer

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 changes on the server side, and then send the…
Toastrackenigma
  • 7,604
  • 4
  • 45
  • 55
0
votes
1 answer

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 files on MAC. For example folder name is…
0
votes
1 answer

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.name)) { let fileText = await…
0
votes
1 answer

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 file handlers on the fly and be able to display…
MGassend
  • 83
  • 2
  • 9
0
votes
2 answers

Making a file readable only by JavaScript and/or Flash

I'm a bit new to web development so forgive the slightly beginner question. Can anyone give me some general pointers on how to prevent downloading of files while displaying content with JavaScript/Flash widgets? The basic dilemma is making files…
j.i.h.
  • 815
  • 8
  • 29
0
votes
1 answer

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 = 'imgName'; const blobImage =…
Franzi
  • 47
  • 4
0
votes
0 answers

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"; File.WriteAllText("Assets\\Write.txt", lines); …
Steve C
  • 1
  • 1
0
votes
2 answers

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 made accessible to the user. The idea was that the…
testing
  • 19,681
  • 50
  • 236
  • 417
0
votes
1 answer

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 seconds while the disk spins up, even though that…
Filip Haglund
  • 13,919
  • 13
  • 64
  • 113
0
votes
0 answers

Git: Setting up public, read-only clone on local network

We have a small Windows LAN with a bare repository origin for research data set up on a network drive and a working clone on each workstation; all is well. We'd like to provide read-only access to the repository for visitors (the actual physical…
uhClem
  • 95
  • 10
0
votes
2 answers

C# .Net Freeze while iterating through large number of files

I have a problem that I wrote an application that would iterate through files and add +1 to the integer each file, until it reaches a specific file name. The problem is probably because .Net does not access the native file system directly, it fills…
Yogibear
  • 153
  • 12