Skip to main content
Filter by
Sorted by
Tagged with
-4 votes
0 answers
34 views

Minikube mounting windows directory rm -r: "directory is part of cycle"

I'm running minikube on Windows 10 and I mount a local directory into it using Powershell: minikube start $MOUNTDIR = "C:\temp\minikube" Start-Process minikube -ArgumentList &...
Jurgy's user avatar
  • 2,332
0 votes
0 answers
25 views

TAURI V2: Trouble with the file system’s mkdir

So I’m trying to make a directory in TypeScript, but for some reason, it’s giving me an error saying “forbidden path: images”. I’m not sure what I’m doing wrong here, and I’ve been having a ton of ...
Sora Hirasawa's user avatar
0 votes
1 answer
26 views

Create backup of a raw flash partition then format it to UBI then update the UBI volume

First I am erasing already existing flash partition with UBI volume using "flash erase" and "flash write" which will write new contents to raw flash in U-Boot, then I format the ...
Dillip Murali's user avatar
0 votes
0 answers
45 views

From an exception catch block, seems file write is not happening

I want to update a file from the catch block, just a few bytes write. Write() seems to pass, but contents not there. Basically keeping a count of exceptions. My filesystem is strange one, PJFS in ...
Anton Fernando's user avatar
1 vote
0 answers
60 views

How to download huge videos from telegram in nodeJS

I was using gramJS to download videos received by my bot. and when I receive huge video files I cannot just use the client.downloadMedia function or I'll run out of memory. so I must stream it. so I ...
winner_vth's user avatar
0 votes
0 answers
18 views

ntfs-3g on macos: hd is writable, rsync fails and cp gives error messages

I have compiled ntfs-3g on macos, ventura 13.6.6, and I use it with macfuse. I have mounted the external disk: the HD is writable and I can write to it, but I get some errors with rsync -avz and cp -...
simona's user avatar
  • 2,171
1 vote
0 answers
18 views

Get a list of all mounted file systems in Linux using prometheus

I used the following prometheus metric to get the available space under root directory, by changing mountpoint, I can get the available space for all other locations. How can I get the list of all ...
user28270014's user avatar
3 votes
1 answer
63 views

read issues during Concurrent fwrite to NFS

I have two processes: one is writing to a file in a loop using fwrite, and another is reading the file in a loop using read. The reader process sometimes returns positive read size but all 0x00 in the ...
rishi jain's user avatar
0 votes
1 answer
37 views

.NET Maui - Can you download fonts from server side? instead of storing within the project?

i am aware of how to use fonts the standard way within the MauiProgram.cs But i am trying to see if its possible to download a font from server side and then bind it programmatically, but to no ...
Dean Beckerton's user avatar
0 votes
0 answers
37 views

How to store data on mass storage with the shortest possible header?

I would like to save one text file on a limited memory mass storage (~22kB). The problem is that the file system header size is too big for this application. The standard FAT32 header takes ~20kB of ...
JO95's user avatar
  • 23
0 votes
0 answers
17 views

Unexplained Disk Growth in Docker Swarm Node

I have a Swarm cluster with 5 nodes, running a variety of services. I’ve noticed that one of the nodes is experiencing abnormal disk growth. My containers are mostly static, yet one server’s /var ...
Denden's user avatar
  • 13
0 votes
1 answer
33 views

What is the best way to prevent application user from messing with application files? [closed]

Let's say there is an app that just creates directories in ~/home/app directory. The app also, for example, stores in ~/home/app meta.json related to directories it has created. As a developer a want ...
Archirk's user avatar
  • 601
0 votes
2 answers
88 views

How does SQLite3 implement its 'secure-delete' without the ability to randomly write file in the middle?

When secure_delete is on, SQLite overwrites deleted content with zeros. 1 How could SQLite 'overwrite deleted content with zeros'? These deleted content might be in the middle of the database file. ...
Limina102's user avatar
  • 1,087
0 votes
1 answer
51 views

Could you use System.IO.Abstractions to treat the differences between a ZipArchive and an actual file system folder transparently?

I have a program that works with projects consisting of multiple files. Each project is saved in a folder of the same name, with project file of the same name, plus one or more support files. C:\...\...
NⵙⵙB's user avatar
1 vote
0 answers
69 views

window.showDirectoryPicker() not allowed error file picker already active

const btn = document.getElementById('btn'); const pre = document.getElementById('pre'); btn.addEventListener('click', async (e) => { try { const dirHandle = await window....
pinug's user avatar
  • 201
0 votes
0 answers
11 views

Accurately testing junctions/symlinks validity

I need to test symlinks (junctions) created in WSL (via ln), because they may not always be valid. The simplest test I could find is to verify the output of: (Get-Item %FILENAME%).Target which is ...
Marcus's user avatar
  • 5,235
0 votes
0 answers
40 views

Save in Notepad++ resets file execution flag in WSL

Every time I save my bash scripts in notepad++ from within Windows the executable flag (file mode bit - chmod +x ...) in wsl (v2) is removed. My scripts reside outside of wsl directory structure and I ...
Alex.'s user avatar
  • 63
1 vote
1 answer
54 views

How to save files to a directory using FileSystemDirectoryHandle?

I'm trying to look for some documentation on FileSystemDirectoryHandle and if it is possible to save files to the opened directory. I've been searching for a couple hours now, any help will be ...
ObviousAlexC.'s user avatar
0 votes
0 answers
26 views

In an application created on Vert.x using AsyncFile and HttpClientRequest, the file is not loaded to the end

The following libraries are used in this part of the code written in vert.x: vert.x 3.5.4; io.vertx.core.http.HttpClientRequest; io.vertx.core.http.HttpClient; io.vertx.core.file.OpenOptions; io....
Даниил Градов's user avatar
0 votes
0 answers
12 views

How to check if WindowsPath is_absolute() if path is provided in posix format (ie '/windows/')

I have a CLI that is suppose to accept absolute paths but not relative paths. I set up my promp_toolkit PathCompleter to only complete absolute paths, only to be surprised that it would allow me to ...
dsollen's user avatar
  • 6,437
0 votes
1 answer
84 views

Is it possible to get bytes in C++ in one line code as path.read_bytes() in Python?

In the Linux shell, I can get our soc_id by xxd /proc/device-tree/soc_id. In Python, I can get it by pathlib.Path('/proc/device-tree/soc_id').read_bytes() But in C++, as I searched/studied in C++17 ...
Keelung's user avatar
  • 379
1 vote
2 answers
64 views

LastWriteTime in Powershell only updates when file is READ?

TLDR; LastWriteTime only updates when the file is read? I have a log, being written to continuously. Occasionally, it rolls over and creates a new log with a new filename. I wrote a little scriptlet ...
Rob's user avatar
  • 83
0 votes
0 answers
25 views

Is a file with two extensions idiomatic if it is metadata related to another existing file?

I have a program which generates and caches JSON metadata for files of multiple media types (e.g. .jpeg, .png). Is it idiomatic to include the original file extension in the name of the metadata file ...
minnow's user avatar
  • 361
1 vote
1 answer
136 views

Databricks notebook command fails with error: value sparkContext is not a member of org.apache.spark.sql.SparkSession

I am trying to get the FileSystem object so that I can use the files from cloud storage without using the dbutils utility functionality. This would allow my code to run on any platform along with ...
Nikunj Kakadiya's user avatar
0 votes
1 answer
75 views

Find out whether filesystem supports extended attributes

I have python program that calls another (external) program: cmd = [ "unsquashfs", "-n", "-d", dirname, filename ] subprocess.check_call( cmd ) It worked so far. But now ...
MateuszL's user avatar
  • 2,983
0 votes
0 answers
26 views

Basic design for local folder indexing using any database

I'd like to ask about a design for using database as folder indexing on my local pc. I'm using it for myself only thus there would be no user nor server concerns. I've already written an user ...
Aldert Kaivohault's user avatar
1 vote
2 answers
107 views

Count files in folder, ignoring hidden files, ignoring nested folders, in Java

Simply counting files is turning out to be surprisingly difficult in Java. I want to point to a folder, and count files found at the top level of that folder. Ignore hidden files, such as Unix-style ...
Basil Bourque's user avatar
1 vote
1 answer
47 views

How to optimize NFS concurrent access performance

Test program: #include <fcntl.h> #include <unistd.h> #include <string> #include <stdexcept> #include <cstring> #include <iostream> int main(int argc, char* argv[]) ...
Mingfei Gao's user avatar
0 votes
0 answers
21 views

Browsing Android device directories with Appium

I need to access my Android device's files through Appium. However, after the AndroidDriver is initialized and the application is launched in Android Studio, its current directory System.getProperty(&...
Ety's user avatar
  • 330
0 votes
2 answers
83 views

Load all existing .JSON files into HTML page with JavaScript using fetch()

I have /mysite/index.html Then I have a folder /mysite/products/ with JSON files as following: /mysite/products/1.json /mysite/products/2.json /mysite/products/3.json ... /mysite/products/578.json ...
Ирина Комсомольская's user avatar
0 votes
0 answers
24 views

is btrfs device remove the correct action?

I am not very confident with BTRFS. I have this situation in my server: # findmnt -nt btrfs / /dev/nvme0n1p9[/@] btrfs rw,relatime,ssd,discard=async,space_cache=v2,...
learning-man's user avatar
1 vote
1 answer
138 views

How to check if a file or folder is available for moving?

Before moving a group of folders and files, I want to check that all files and folders are not locked for moving. They may be locked by an external process, they may be running, or perhaps an external ...
DmitryB's user avatar
  • 525
0 votes
0 answers
22 views

MacOS applications terminal command empty apart from "join.app"

I'm helping someone out with their Mac computer, Macbook and files. Its overall, a disorganised mess. Something I'm baffled and suspicious about is that when I open the terminal and go "ls", ...
star 4812's user avatar
1 vote
1 answer
75 views

FileEntry.file() method not working properly when opening an HTML file directly

I am working on a drag-and-drop upload feature. Through the drop event, I use e.dataTransfer.items to retrieve the handles for all files and folders, then call the items[n].webkitGetAsEntry() method ...
Thon Hei's user avatar
1 vote
1 answer
155 views

FUSE3 - Inability to create inode-based virtual-file-system

Intro - context I'm trying to develop a FUSE3 inode-based Virtual-File-System (VFS), where: A set of inodes from an external ext4 file-system are mapped into a hashmap as <inode>:<filename&...
Giorgos Xou's user avatar
  • 2,106
-2 votes
1 answer
53 views

Determine legality of a path using std::filesystem under Windows?

In C++20, is it possible to check the legality of a path using std::filesystem under Windows? By "legality", I mean whether the path contains any "forbidden" characters, is too ...
Woody20's user avatar
  • 867
0 votes
0 answers
71 views

C++ server/client application: robust communication through NFS

I have an C++ application client/server which communicates through NFS filesystem on two different machines. The server appends the messages it wants to send in a file (messages.txt) and creates a ...
blackcat's user avatar
1 vote
0 answers
81 views

SOLVED: FUSE does not call the readdir callback I provided in fuse_operations

I've been trying to write a custom filesystem with fuse and I've run into a little problem. I noticed that ls didn't work. It always failed with an error that said Function not implemented. After ...
Eralt's user avatar
  • 11
0 votes
0 answers
45 views

C++ Filesystem Not Working in VSCode with g++ 13.2: No Output or Errors

Im trying to write an app to count the number of lines, characters etc. in a directory, in order to do that i need to get the path and for that i was plannning on using the c++ filesystem, sadly it is ...
relextm19's user avatar
0 votes
1 answer
68 views

wal_init_zero in PostgreSQL

In the original CL here, author mentioned a discussion linked here. However, this discussion seems to focus mainly on the allowance for disabling WAL recycling. Is this the correct discussion, or is ...
Ritu Bhandari's user avatar
0 votes
0 answers
44 views

Why did my local Git repository get damaged when I changed my system from Ubuntu 22.04 to Windows 10

I'm using Ubuntu 22.04 (Linux-to-go) and Windows 10 on my desktop. Everything was working fine until I reinstalled Windows 10 on a new SSD (because my previous system SSD had developed bad blocks). ...
Xlucidator's user avatar
0 votes
0 answers
61 views

Android: Deleting files in Documents turn to be hidden instead

Android Version 13. I store my Debug files in the internal Public Documents directory (Documents/Appname/Debug/). When I manually deleted these files with a File Manager, my App got Access Denied ...
Bart Kindt's user avatar
0 votes
0 answers
68 views

Is there a way to find out the path from getApplicationInfo().nativeLibraryDir of another app?

Android API provides getApplicationInfo().nativeLibraryDir to find out an app's /data/app lib path, as explained in previous questions How to get the path to the lib folder for an installed package or ...
Ruben P. Grady's user avatar
0 votes
1 answer
378 views

resize2fs No such file or directory while opening

I'm having a simple trouble updating my block storage using resize2fs. The error message sounds quite simple and straight forward, but I have no clue to solve this problem. $ kubectl exec -it es-prod-...
user15397083's user avatar
0 votes
1 answer
32 views

Searching for specific string in a folder system

So I have a folder system in Windows with a bunch of files with php. I am trying to find all the times a specific string/variable is used in the files but I dont want to go through each file and CTR-F ...
Montain Production's user avatar
0 votes
1 answer
146 views

"filesystem error: cannot increment recursive directory iterator: Permission denied" on 0777 directory

My code looks like this: auto const dir = std::filesystem::path(...); std::error_code ec (0, std::generic_category()); try { for (auto const& inner_entry : std::filesystem::...
aaa's user avatar
  • 3
0 votes
0 answers
25 views

Using Alpine Linux Image in Docker file and getting npm error errno EACCES

We are using Alpine Linux Image in Docker file and getting npm error errno EACCES Exact error message is npm error errno EACCES npm error npm error Your cache folder contains root-owned files, due to ...
Ashu's user avatar
  • 654
2 votes
1 answer
102 views

Why can't filesystems provide direct access to the physical sector allocations (extents/groups) of a file?

I'm working on a database project where I need to write to both a data.bin file (for storing data) and a metadata file. I'm running into an issue with the overhead caused by filesystem metadata ...
CrazyTard1990's user avatar
1 vote
0 answers
53 views

Is it possible to set ACL permissions for Boost.Interprocess managed_shared_memory? If not, how can I achieve this?

I'm using the Boost.Interprocess library in C++ to manage shared memory using the managed_shared_memory class. I am creating the shared memory segment with the open_or_create flag and specifying ...
Rishi Jain's user avatar
0 votes
0 answers
48 views

Understanding File Access in Databricks File System (DBFS) versus Volumes with Python and Spark

I am currently trying to read and display a file from the Databricks File System (DBFS), but I encountered an issue. Here is the code I was using: file_path = "/dbfs/cluster-logs/use_case/...
DataBach's user avatar
  • 1,594

1
2 3 4 5
194