Questions tagged [filesystems]

A file system is a way of organizing data on a computer system. Typically a file system consists of files, folders (normally a special kind of file) and an API that can be used for interacting with files.

filesystems
Filter by
Sorted by
Tagged with
0 votes
1 answer
31 views

I am trying to implement a system where I allow users to upload photos and only their friends can access photo. How to restrict such access

When a user uploads his photos it will be stored on CDN or DFS. Once a link is generated on either of this approach and link becomes public any person will be able to acess that file. I want to ...
vicky desai's user avatar
0 votes
2 answers
2k views

How can I get PowerShell's Get-ChildItem command to list files in a path longer than 260 characters?

When using PowerShell 5.1 and earlier in Windows and trying the list the contents of a folder using the Get-ChildItem command - where the folder path is longer than 260 characters - results in an &...
DylanH333's user avatar
0 votes
0 answers
125 views

React Native Expo FileSystem, how can I save while setting the priority to very high? And do i need permision to save elswhere than cache folder?

I liked save image file with the aim to keep the image as long as possible in the device. Searched for flags to set priority high. Saved file to chache Folder but the file always get deleted by system....
O.A.'s user avatar
  • 1
2 votes
0 answers
77 views

PHP has no access to files on external drive (MacOS)

There is an error on attempt to access any files or directories on external volume: Warning: file_get_contents(/Volumes/Disk/Folder/File.json): Failed to open stream: Operation not permitted I've ...
Wald's user avatar
  • 41
0 votes
0 answers
49 views

Monitoring some folders with auditd doesn't produce any log

I'm setting up auditd rules on an Ubuntu 22.04 server (auditd version 1:3.0.7-1build1 - amd64). I'm setting up rules to monitor writes on some specific directories. If I add rules to monitor /etc, I ...
Antoine's user avatar
  • 1,168
0 votes
0 answers
230 views

How reserve space for directory

I have a 25GB disk partition mounted at /data . How can I reserve space, for example, 5GB for a specific directory, without creating an additional partition. For example, I want to reserve 5 GB for ...
TheAct1on's user avatar
0 votes
0 answers
131 views

GitLab CI/CD: no space left on device (docker)

I am building a docker image in Gitlab. However, during the build, I receive: Error processing tar file(exit status 1): write /app/node_modules/inquirer/node_modules/rxjs/add/operator/map.js: no space ...
Edoardo Roba's user avatar
0 votes
0 answers
23 views

File system for remote connection with 2FA

recently the cluster I have been using installed two-factor authentication (2FA) with OTP (one-time pad). Is there a possibility to use file viewers (like Forklift) on MacOs with the 2FA or mount the ...
Qant123's user avatar
  • 153
0 votes
2 answers
69 views

Shorter implementation for this code in Rust

Not so long ago, I switched from Python to Rust and started learning it. I want to try to open a file in read-only, read it and print the data. But I cannot understand, why I need write data to ...
TheVorkMan's user avatar
0 votes
0 answers
29 views

Different process open same file for different mode of operation

I was revising linux file descriptors, open file table in kernel and came across this post on medium.com, here it mentions Let’s assume fd5 is created as a result of process A calling open on file ...
RootPhoenix's user avatar
  • 1,707
0 votes
1 answer
78 views

Cannot find container from overlay2 subdirectory id

I'm trying to solve a filesystem filling issue because of docker containers, therefore I'm trying to find containers from overlay2 sub-directories structure : $ sudo find /var/lib/docker/overlay2/ -...
SebMa's user avatar
  • 4,395
0 votes
1 answer
213 views

Directory symlink creation on windows server

I have one windows server 2019 on which command mklink /D seems to work from command prompt (no error, directory created) but does not create the link directory. Both linked directory and link itself ...
Mad hatter's user avatar
0 votes
1 answer
27 views

(Python) Cannot find existing file with regex, Path.glob, and known substring

I am trying to find a file with a given ID, this ID contains numbers, letters, and underscores. I am iterating through a list of the IDs, finding their location based of a given directory (which is ...
James Miller's user avatar
0 votes
1 answer
586 views

Can LittleFs read and write binary files?

// File open flags enum lfs_open_flags { // open flags LFS_O_RDONLY = 1, // Open a file as read only #ifndef LFS_READONLY LFS_O_WRONLY = 2, // Open a file as write only ...
Wildptr's user avatar
  • 25
0 votes
1 answer
101 views

Check if 2 paths are on the same volume

I already have permission, <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" tools:ignore="ScopedStorage" /> And, test written data ...
Cyber Avater's user avatar
  • 1,925
0 votes
0 answers
69 views

Storage::url() in Digital Ocean spaces too slow

For Laravel 9, I'm using Digital Ocean spaces and Storage::url() to return the full bucket endpoint for files. I've been facing latency issues and I realized that problem was related to ApiResource ...
Luciano's user avatar
  • 2,146
1 vote
1 answer
37 views

how to prevent NodeJS FS mdule from caching?

I'm making a file manager using NodeJS and EJS, I have a default /folders API Endpoint which reads all files and folders in a specific location using fs.readdirSync(folderPath, { withFileTypes: true }...
Islam AbdelHakiim's user avatar
0 votes
1 answer
372 views

Docker high disk utilization with VFS storage driver

I am using Docker with the vfs storage driver which is significantly taking up disk space on my system (the backing filesystem is overlayfs which, unfortunately, is preventing me from using overlay2 ...
Tabish Mir's user avatar
0 votes
2 answers
124 views

C++ Can`t iterate through C drive

My task is to find a file by its name. Search has to be started from C:\ drive. As I was testing my functions on other drives like D:\ or A:\ everything was all right, but I am trying to do it with C:\...
AlexV's user avatar
  • 1
0 votes
0 answers
125 views

fatal error C1189: #error: "No Target Architecture"

I get the following error when generating the fastfat driver example: C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\shared\ntdef.h(197,1): fatal error C1189: #error: "No Target ...
aszswaz's user avatar
  • 629
0 votes
0 answers
138 views

How to get a file into the app bundle (react native ios)

I have been searching online for an answer and cannot seem to find a viable solution anywhere. I have a file, "sudokus.csv" that contains a large number of sudokus that my app accesses. When ...
Ryan Ward's user avatar
0 votes
1 answer
319 views

Is there a way to create custom label for files in linux system?

Is there a way to give any file a customized "ID card", so that I can identify its source, or record anything that I want. But at the same time, firstly, do not modify the file content, ...
yoooPai's user avatar
  • 26
-2 votes
1 answer
264 views

undefined reference to std::experimental::filesystem::v1::__cxx11::recursive_directory_iterator functions in C++ after -lstdc++fs

I have a C++ code which includes <experimental/filesystem> header file. In makefile I do like this to compile the source code: g++ -Iinclude -c Filesystem.cpp -o Filesystem.o g++ -Iinclude -c ...
Iman Abdollahzadeh's user avatar
0 votes
0 answers
6 views

Overhead to sort block addresses in the multilevel indexed allocation like ext2

I'm not familiar with details of OSs or filesytems, but I'm now studying about file allocation approaches, especially, indexed allocation that forms the basis of major Linux filesystems like ext2/3/4. ...
Kimi Shirahama's user avatar
0 votes
0 answers
131 views

Does NTFS have extended file attributes and how do I read/write them on windows?

I'm writing a cross-platform app that needs to keep track of files that may also be worked on by other software, most notably the default file explorer app of whichever platform. To do this, I attach ...
user81993's user avatar
  • 6,375
0 votes
0 answers
40 views

How to find true source of a mount?

I want to understand how can I figure out the actual source of a mount from /proc/self/mountinfo file? Here is an example of a mountinfo file: 19 60 0:5 / /dev rw,nosuid shared:2 - devtmpfs devtmpfs ...
codego123's user avatar
  • 181
0 votes
1 answer
36 views

Check what files are in a directory using js in .html file

I am trying to figure out how to read what how many/what files are located within '../mydirectory/images' in a .html file that I have that is the landing page for my website. I need this so I can ...
Wx_Trader's user avatar
0 votes
0 answers
24 views

Weird file behavior with git and screen

I recognized on a system I support following behavior. The scripts of the user are python scripts with pytorch as deep-learning cluster. The script is only partially written by the user. The ...
MaKaNu's user avatar
  • 872
0 votes
0 answers
167 views

read-only file system in minikube

I'm trying to create a directory in /lib/modules, in minikube: minikube ssh -- sudo mkdir -p /lib/modules/x.x.x/build but it gives me error: mkdir: cannot create directory '/lib/modules/x.x.x': Read-...
Michael Cab's user avatar
1 vote
1 answer
117 views

File size to optimise wear leveling on UBIFS partition

I need to repeatedly write 8 bytes of data (uint64_t counter) to a ubifs partition of size 256 MB. I am concerned about the flash wear due to the repeated writes. Looking at the ubinfo -a output on ...
Lokesh's user avatar
  • 11
2 votes
1 answer
246 views

/proc/mounts does not have Source info like /proc/self/mountinfo has

I am working on a go application where I want to use the the mount-utils package: https://pkg.go.dev/k8s.io/utils/mount Here, this package parses /proc/mounts file instead of /proc/self/mountinfo. How ...
codego123's user avatar
  • 181
1 vote
1 answer
242 views

Does Docker use swapfile by default?

I'm using docker compose v3. I manually added swapfile to Linux. Would Docker use it by default on next system start? Should i manually define swap in docker compose yml file?
GentleSir's user avatar
0 votes
1 answer
120 views

Renaming files with Flutter in newer Android API versions (Android version >11)

In my app, I have a need to perform some file system operations. One of them is renaming a file to a certain name generated by the app. I am using the following code: import 'dart:io'; import 'package:...
Joel G Mathew's user avatar
0 votes
2 answers
188 views

c++17 filesystem, concat multiple strings

this code std::filesystem::path = std::filesystem::current_path(); (((path += "str1") += "str2") += "str3"); looks so messy. How do I add multiple strings to a path ...
user3600124's user avatar
0 votes
0 answers
196 views

Can't open .ics files with react native if app is in closed state initially

I want to share with you, a problem I have with my react native app, I'm struggling with this error and I really can't find a solution yet. Context: I created a calendar app, where you can create ...
Carlos Martin's user avatar
0 votes
0 answers
13 views

Generate realiable cache key for file

Is there a fast and reliable way to generate a key for a generic file, to serve as cache key to limit unnecessary downloads of big files? (Client retains a copy and a cache key, and the next time ...
user2953241's user avatar
2 votes
2 answers
2k views

Converting an exe recipe file to a regular exe file to run on desktop

I want to create just a simple exe file from some code i am trying in c++ when i try to create exe file it creates a exe recipe and it does not work. how do i fix that problem i tried looking it up ...
artur anikin's user avatar
0 votes
0 answers
90 views

How to delete security software without a password?

I have a security software installed on my computer called greenguard from the company greenware and every time I turn the computer off and on it deletes all the things that have been downloaded or ...
Ofek Barzelai's user avatar
0 votes
0 answers
109 views

wsl.exe in C:/Window/System32 is invisible from cmake COMMAND execution

i want to launch wsl in cmake custom_command this is simplfied code add_custom_command(OUTPUT ${FFMPEG_CONFIGURE_OUTPUTS} COMMAND wsl.exe -- echo salut from wsl echo ) but it reports 'wsl.exe' ...
Listen Cheer's user avatar
0 votes
2 answers
958 views

NodeJS: ENOENT: no such file or directory, stat 'C:\Users\Ido\Desktop\SemestrialNodeJS\public\login.html'

enter image description hereI'm working on a NodeJS project, and I'm experiencing an error when trying to access the login page. When I attempt to navigate to /login, I get the following error message:...
Ido's user avatar
  • 3
0 votes
1 answer
66 views

Can I set the source of an img element to be the path to a file in my local server?

I am trying to get the user to upload a file. This uploaded file is then stored on my flask file system and returns the urlor path to the file so it can be displayed. However I am getting a 404 error ...
David Timi's user avatar
1 vote
0 answers
76 views

AAD login - delegate permission to filesystem

What I have The Windows Server connected to AD, which is sychronized with AAD somehow Documents stored on filesystem (shared network folder). There are various security rules applied to the ...
Liero's user avatar
  • 26.2k
0 votes
0 answers
100 views

In NTFS, what is the difference between the FRN and the FileID64?

NTFS seems to have two internal identifiers for file system entries: the FRN (File Reference Number), and the FileID64. From all the research I've been doing (aside from peering into actual code), ...
Ruslan's user avatar
  • 2,773
0 votes
0 answers
69 views

Does SystemIndex in Window Search Service query only gets C:/Users/{currentUser}/ directory?

I looking for an efficient way to list all files in the drives. The easy way would be to list files in C#: static void Main(string[] args) { SearchFiles("C:\\", "....
Fatima A.'s user avatar
2 votes
0 answers
144 views

Why is GCC throwing filesystem_error cannot copy

I'm working on an app that writes/copies files and thought of updating the code to C++17's filesystem. I'm on Windows 11 using g++ v12.2 with MSYS2 MinGW 64-bit. Below is a summary of my app's ...
Mj Mendoza IV's user avatar
0 votes
0 answers
35 views

Fastest directory size on Android

I can calculate directory size using val sz = Path("""path/to/directory""").walk().sumOf { it.fileSize() } But apparently, it's not fast enough, it's very slow. ...
Cyber Avater's user avatar
  • 1,925
0 votes
1 answer
75 views

Calculate 'Size on Disk' of a directory

I can get the recursive size of a directory by: val sz = Path("""D:\Games""").walk().sumOf { it.fileSize() } On Windows, In the properties of a directory, there are ...
Cyber Avater's user avatar
  • 1,925
0 votes
0 answers
27 views

Determining file type in Swift [duplicate]

Because directories are files in macOS and Linux too, I try to determine what type of file it is. This is the code I have so far: import Foundation let filePath = "/Users/Sample/test.ext" ...
Marlene's user avatar
0 votes
0 answers
32 views

how to save files in flutter on android version before 11 using light_compressor

So I am trying to compress a video and display it but the code does not run final dynamic compressedVid = await _lightCompressor.compressVideo( ...
AhanR's user avatar
  • 21
1 vote
1 answer
36 views

Convert a nested folder into a nested list of raw vectors and back

Say we have a folder such as defined below folder <- tempfile() dir.create(folder) dir.create(file.path(folder, "subfolder")) writeLines("hello", file.path(folder, "hello....
moodymudskipper's user avatar

1
3 4
5
6 7
193