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.
9,588
questions
0
votes
0
answers
30
views
Unable to download and open files in Ionic and Angular
I am currently developing an Ionic mobile app and I am attempting to download a file to the Documents directory on my cellphone, I am doing remote debugging. I have a MsSQL server and a ASP.NET 6 Web ...
0
votes
0
answers
14
views
Example of a filesystem available to Linux that does not guarantee a `read()` after `write()` returns what has been written?
The Linux write() man page says:
POSIX requires that a read(2) that can be proved to occur after a
write() has returned will return the new data. Note that not all
filesystems are POSIX conforming.
...
0
votes
0
answers
38
views
how i can show my *.pdf files from storage/?
I have a project with Laravel & Livewire, in a component i save a *.pdf on app/storage/public/documents/*MiFiles.pdf, save the path in field of my database ($document->content), when i apply ...
0
votes
0
answers
13
views
How to get the path to an imported node_module from inside the node_module itself?
I might be embarking head first into an X/Y problem here, but:
I have a NodeJS package intended to be used as a plugin to a CLI module, call i Plugin A.
Then I have an importing package, call it CLI.
...
0
votes
0
answers
18
views
How do I load all mp3 files from file system?
In my App I need to access all mp3 files in the file system and load their information on the screen to collection. But every time I try to access Downloads directory or any other folders directly ...
0
votes
0
answers
18
views
Azure Data Factory File System Linked Service Not Closing Session [closed]
We have a pipeline in ADF that pulls CSV file data from an internal file share and have recently had some issues with one particular file. It typically looks to be corrupted, but today I was informed ...
-2
votes
0
answers
64
views
#include <filesystem> causes fatal error with g++ [closed]
I am trying #include <filesystem> but running
g++ x.cpp
...causes this error:
fatal error: filesystem No such file or directory
#include <filesystem>
^
compilation ...
-4
votes
0
answers
52
views
Reading from a device file in windows 11 generate error ERROR_INVALID_PARAMETER (0x57) when writing to the same device file is succeeded [closed]
I am trying to open a device file and write and read data from it.
I have this code (simplified)
HANDLE handle = CreateFile(channelPath.c_str(),
GENERIC_READ | GENERIC_WRITE, // Access ...
0
votes
1
answer
9
views
How to access filesystem/static files in a nuxt3 api in vercel using nodejs path/fs modules
I'm using vercel for hosting my nuxt3 app, it has few APIs and I want to access files stored in my src/public directory using filesystem / node APIs
I tried using path and fs modules and listing out ...
1
vote
1
answer
41
views
Creating a virtual file on disk
I have an external program (as an executable binary) that consumes input files that potentially could be very large. I'm writing a C# application that will take data from our DB; write a segment of it ...
0
votes
0
answers
46
views
Why is file.close() so slow, even when there is no buffering and/or file.flush() has already been called?
from time import perf_counter
t = perf_counter()
file = open('dummy', 'wb', buffering=0)
print('open', perf_counter() - t)
t = perf_counter()
file.write(bytes(16 * 1024 ** 2))
print('write 16MB', ...
-2
votes
0
answers
53
views
rename() function error: "No such file or directory" [closed]
I am trying to rename a file using variables in the file names but getting file or directory not found.Below is the code
rename ("/var/www/intranet/contract_books/_lib/tmp/".$filename, "...
0
votes
0
answers
6
views
Cannot rewrite file in folder (Flutter)
In Flutter (Android), I open a File object, write to it adding bytes using the IOSink object and the file is created in the specified folder and everything is great. Now, I delete manually the file. ...
0
votes
1
answer
13
views
Perforce does not allow Obliterate files
When attempting to obliterate files I receive the following error:
The filesystem '.p4-extensions' has only 4.9G free, but the server configuration requires at least 5G available.
'.p4-extensions' ...
1
vote
0
answers
120
views
Implementing a simple version of readdir with system call
I am reading the following famous book.
B. W. Kernighan, and D. M. Ritchie, The C Programming Language, 2nd Edition, Prentice Hall, 1988.
In the last chapter, section 8.6, authors give an example of ...
0
votes
0
answers
20
views
What is the URI for files in my Documents folder?
I want to use this to access a file xxx.txt in my Documents folder. How would I reference the file?
using (StreamReader sr = new StreamReader(Assets.Open("/Internal storage/New Folder/Documents/...
1
vote
1
answer
25
views
is r-x file considered read only or not?
A file is considered "read-only" if reading the file is
allowed but writing to the file is not permitted.
What if the file has the following permissions (r and x)
root r-x file_name.xls
Is ...
0
votes
0
answers
27
views
read input csv file from apache flink application in docker container
I have an apache flink application created with maven that reads data from a csv file and creates a datastream. the code is below:
public static void main(String[] args) throws Exception {
...
1
vote
0
answers
21
views
os.scandir throws mysterious NotADirectory error
while I was writing a function loop through a folder
code here:
import os
from pathlib import Path
path = Path(r'D:\full')
for i in os.scandir(path):#folders
for j in os.scandir(i.path):#subdict
...
-1
votes
0
answers
20
views
Why is it that when adding files to a directory on Macbook using Python I do not get a 'FileExistsError' when using already existing names?
I am working on a script that has to loop through files in a directory (SOURCE), extract some data out of them, make copies of them, and finally save them in another directory (DESTINATION) using some ...
0
votes
2
answers
22
views
How to resolve issue with relative paths in python
I'm developing a package. I want to store some data in json files and retrieve this data within my package.
def get_contract_details(path: str) -> Tuple[str, list[str]]:
with open(path, 'r') as ...
0
votes
1
answer
15
views
Why is the first value in pathlib.Path.parts a forward slash?
if I run the code
from pathlib import Path
print(Path('/some/file/system/path/').parts)
it will output
('/', 'some', 'file', 'system', 'path')
Why is the value of the first entry a forward slash?
I ...
0
votes
2
answers
23
views
How to access filesystem of app container while running container tests in Quarkus?
When running native tests in Quarkus, the application runs in a container. I have functionality that involves reading and writing to the filesystem. Therefore, I must prepare test data before each ...
-1
votes
0
answers
13
views
How can an Electron app obtain the file paths of files selected in file explorer?
Suppose user selected a few files in file explorer (or finder on Mac), how to obtain the file paths with an Electron app?
-5
votes
0
answers
69
views
Xcode 14.1 'experimental/filesystem' file not found
The code is working for the rest of the team, but for some reason I can't build successfully.
I originally installed Xcode 14.3 for testing, and later realized that <experimental/filesystem> was ...
0
votes
1
answer
20
views
Is there any faster way to get the disk space usage instead of using du -sh?
I've around 100 TB of data in the folders which need to be checked. But du -sh is taking more than a day to get the results.
is there any other alternative other than du -sh and ncdu ?
I tried du -sh ...
0
votes
1
answer
24
views
How to share code auto-fill suggestions from a seperate instance of vs code
I'm working on a project which relies on a library, they both were in the same folder before but out of curiosity I split them into seperate folders, i.e 'Github' containing 'Caldro' folder and '...
0
votes
1
answer
27
views
What happens when i try to read a file when it's in saving/overwriting process?
Let's say i have a file with multiple texts and i try to read it in code. Let's say it takes 15 seconds to read the file. When my code starts reading and in 7th second another process tries to save or ...
0
votes
0
answers
28
views
Formatting and Filesystem Issues on SD Card - Differences in Boot Sector and Dirty Bit
I'm experiencing several issues with an SD card, and I'd like to provide more details to help the community understand the problem more comprehensively:
I'm using an SD card with my Android ...
0
votes
0
answers
20
views
Order of OS writes to a FAT file system
When an OS creates/overwrites a file on a disk formatted using a FAT file system (e.g. FAT12 for simplicity), it needs to write to the directory region, to the cluster chain, and to the data region.
...
0
votes
1
answer
53
views
Powershell Script to Find and Copy only the Latest file from folder
I’m having a little trouble finishing a powershell script. The script is to copy two files from an SFTP server. The files are on a directory that will get copied to a shared folder for review and ...
0
votes
2
answers
48
views
java.nio.file.Path: creating a path for a different/virtual FileSystem?
I am using java.nio.file.Path for modifying paths that do not exist in file-system, but inside a ZIP file. Of course I can not use such Path instances for reading and writing file content but that is ...
0
votes
0
answers
28
views
How would I write a for loop and test if a file exist in a list of files? [duplicate]
Scenario: I have a file called text.txt that contains items in the following format:
002 jack /data/jack_profile_0606112019.doc
004 jack /data/jack_pic_06062019.jpg
009 jane /data/...
-2
votes
3
answers
71
views
Python .replace working in one place but not in the other
I am currently writing a script for my own website that hosts games and a lot of them
So many games that I have to write a script to automatically create a file for each game
Now where I am stuck is ...
0
votes
0
answers
33
views
Automatically Run a bash script when folder opens in windows on a USB drive
I want to create a automatic log file whenever the folder opens in the USB.
In windows how to run a script when a folder is double clicked or opened from USB Drive.
like this autorun.sh
0
votes
0
answers
15
views
How to recover a btrfs filesystem on top of lvm on two encrypted devices after an lvresize mishap
Recently I added a second ssd block device tot my Pop!_OS 22.04 system,
encrypted it and added it to the volume group. In the process I decided to
resize the root logical volume (the only volume). ...
0
votes
0
answers
14
views
How to build a peer-peer network using python with Content-based addressing?
I want to build a private p2p network, something like IPFS, with 5 peers. Where or from what should I start?
I'm new to building a network. So, please provide some guidance or suggest some websites ...
0
votes
0
answers
31
views
Unmount OverlaysFS directory with multiple lower directory
There are multiple directory mounted with physical device.
lower0 -> /dev/blk/sda-0
lower1 -> /dev/blk/sda-1
lower2 -> /dev/blk/sda-2
lower3 -> /dev/blk/sda-3
Then I stacked them together ...
0
votes
1
answer
11
views
COM SURROGATE to 30% cpu
I have recently been adding features that use the file system. I've done something that causes the COM SURROGATE to eat up an entire core and leaving file explorer is a "spinning wheel of death&...
0
votes
1
answer
50
views
Win32 API equivalent to POSIX fpathconf()?
Does the Win32 API have an equivalent to POSIX fpathconf(), for example to figure out what the maximum length of a file name can be for a specific mounted filesystem? Or whether the filesystem for a ...
0
votes
0
answers
11
views
Does Kudu have requirements on the block size of the file system?
When initializing Kudu, will check if the file system supports punch hole. Kudu will create a test file when initailizing and do puch hole, and check if the file's size is what we'd expect.
However, ...
0
votes
0
answers
17
views
"/journal" partition size for dedicated MongoDB server (in relation to OS partition size)
We are setting up a new dedicated Linux MongoDB server.
In a relevant blog post about the topic on the MongoDB blog, it is stated that:
We recommend storing MongoDB's journal files on a separate disk
...
-1
votes
1
answer
60
views
Why do I get "creation time is not available on this platform currently"? And what to do about it?
I am using this code to get the latest dir name:
use std::fs;
fn main() {
let subdirectories = fs::read_dir("/opt")
.unwrap()
.filter_map(Result::ok)
.filter(|...
0
votes
1
answer
20
views
Docker: prevent container from modifying host's files when binding
Whenever I bind a filesystem to a docker container using -v:
sudo docker ... run -v /file/to/host/thing:/container/filepath ...
Any modification my container does to it's corresponding /container/...
3
votes
0
answers
42
views
Does Linux provide a mechanism for caching the file system in your program? [duplicate]
I'm working on a little hobby project to make my own file explorer. nothing fancy, just view the files in the selected folder and optionally add/edit/rename/delete them.
I'd like for the view I ...
0
votes
0
answers
7
views
Does Fatfs support storing files larger than 4GB when FF_LBA64 is disabled?
in NXP's Kinetis series MCU, I have formatted the 8GB-sized EMMC as a Fatfs file system and also implemented the USB MSC function, which allows accessing the files in Fatfs through USB on a computer. ...
2
votes
0
answers
22
views
When use fanotify, files from deleted directory have incorrect path
When I use fanotify for listening to file changes, when I delete a folder in the root directory, the files under this folder appear with (deleted) characters, for example:
/data/service/el2/100/hmdfs/...
-1
votes
1
answer
31
views
Git diff metadata settings and ignoring those
If I delete a file inside git repo, then re-create it with same content, my Ubuntu says
On branch main nothing to commit, working tree clean
But in Windows or Mac, git diff will show every line in the ...
0
votes
1
answer
21
views
Using <experimental/filesystem> with CMake
I was using CMake to build a project that requires <experimental/filesystem> in C++14. And I got undefined symbol: _ZNSt12experimental10filesystem2v17__cxx114path14_M_split_cmptsEv when running ...
1
vote
1
answer
165
views
How to use "tree" command on powershell to show files as well as directories
I am trying to get full structure of my project in tree format in powershell.
When I use the command tree, it only shows directories and subdirectories, but neither files nor hidden folders, such as ....