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
25
votes
2 answers

File system block size

What is the significance of the file system block size? If my filesystem block size is set at, say 8K, does that mean that all read/write I/O will happen at size 8K? So if my application wants to read say 16 bytes at offset 4097 then a 4K block…
user880946
  • 429
  • 1
  • 5
  • 5
10
votes
3 answers

Why does Linux use getdents() on directories instead of read()?

I was skimming through K&R C and I noticed that to read the entries in a directories, they used: while (read(dp->fd, (char *) &dirbuf, sizeof(dirbuf)) == sizeof(dirbuf)) /* code */ Where dirbuf was a system-specific directory structure, and…
9
votes
6 answers

Save images to hard disk WITHOUT prompt?

I use twitter. Some people's tweets contain photos and I want to save them. I checked ifttt, where twitter is not a trigger. Thus, ifttt cannot help me do it. One idea is probably to use JavaScript. I use Firefox and installed Greasemonkey. I can…
Gqqnbig
  • 5,845
  • 10
  • 45
  • 86
8
votes
3 answers

Write PDF files from Web-App to USB-Stick

I am concerned with the feasibility of this: On a pre-configured machine I will have a Web-Application pre-installed, next to an Apache-Suite. So client and server are the same! In this Web-Application Users can drag and drop PDF-Files to an…
Sebastian G. Marinescu
  • 2,374
  • 1
  • 22
  • 33
6
votes
2 answers

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 browse open a folder and then lets you browse…
5
votes
1 answer

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 fails, DirectoryPathB is checked and returned. (If…
surface
  • 93
  • 6
4
votes
1 answer

Is it possible to concatenate two files on the same linux filesystem by modifying the inode datastructure and superblock?

If I want to concatenate two very large files residing on the same filesystem, say ext3 or ext4 for example, does linux provide an api to do it programmatically by reading and modifying the inode direct/indirect pointers of the two files, and…
nohup
  • 3,105
  • 3
  • 27
  • 52
3
votes
0 answers

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, except in few cases in which some users experience…
Cristiano Ghersi
  • 1,944
  • 1
  • 20
  • 46
2
votes
0 answers

Which IIS Account should I grant directory access privileges to?

I've moved my codebase to a new directory and need to grant the IIS account read/write privileges on a few folders to allow access by the ASP.Net runtime. I believe NETWORKSERVICE is no longer used for this purpose (as mentioned in this earlier…
immutabl
  • 6,857
  • 13
  • 45
  • 76
2
votes
0 answers

why File.Open(FileName, FileMode.Open, FileAccess.Read, FileShare.Read) fails?

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. The file is created by my code and I didn't set…
1
vote
3 answers

Rejected app-update on Mac App Store (accessing loginwindow.plist)

I'm having trouble with a Mac App Store submission. I'm using the method below to add my App to the login items if the user toggles the checkbox in the preferences. -(void) addAppAsLoginItem{ NSString * appPath = [[NSBundle mainBundle]…
tamasgal
  • 24,826
  • 18
  • 96
  • 135
1
vote
1 answer

Setting access to a folder to only one user

I Want to assign permissions to only a single user to a folder in windows using C#, Other users should not be able to open or change the access rights of that folder. for example if I have 3 users - UserA ,UserB and UserC in Users group. I want to…
Sujith Kp
  • 1,075
  • 3
  • 14
  • 27
1
vote
2 answers

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 about how to actually add the api. I would really…
1
vote
3 answers

How to access a file in local system using JavaScript?

I'm using jQuery Mobile framework. I'm having a server which hosts a website. The user can connect to website through mobile browser and download files (.doc, .xls, .pdf etc.) from that website. I need to open the file which is saved in the user's…
Ka-rocks
  • 774
  • 1
  • 14
  • 27
1
vote
1 answer

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 reasonably lightweight and straightforward way?…
j4nw
  • 2,227
  • 11
  • 26
1
2 3