Questions tagged [file-systems]
techniques to organize and store files with their data on a computer.
95
questions
0
votes
2
answers
268
views
Building a program that truly deletes everything
We all know that if we delete a file, the operating system is recycling it but doesn't actually delete it. It just removes it from the directory indexes, and until the data is needed and overwritten, ...
0
votes
0
answers
52
views
Best design principles and approaches for a Windows desktop app used across a home network
Forgive this question if it's too 'newbie' or green - I'm not a professional developer or anything. I'm a hobbyist coder.
I'm developing a windows desktop application which requires the following ...
0
votes
2
answers
54
views
Delete filesystem data associated with database record by delete hook, or internally in service logic?
Let's have many rows in the SQL database where every record has an image property that holds the path to file in the filesystem. Many database libraries have the ability to set-up hooks that are ...
0
votes
1
answer
121
views
Large file uploading in chunks
How to upload large(mb/gb) of video files from client to app server?
The solution as of now I know is pretty simple and widely used is to break file in chunks at at client side and send http post ...
1
vote
1
answer
63
views
Custom File System Index/Cache - How to save index
I've got an extremely oniony(deep) folder structure which contains Appx 1,000,000 text-based files on a network share. Using windows search is extremely slow and unreliable. I've created some text ...
5
votes
1
answer
777
views
Why use strong checksums to detect random errors in a filesystem like btrfs?
Btrfs supports crc32c, xxhash, sha256 and blake2b as checksums when storing and reading files. crc32c and xxhash are designed to detect random errors while sha256 and blake2 are considered ...
1
vote
0
answers
27
views
(Installable) File System Driver, Shell Extension Handler or another approach?
I have an application that does some document handling as part of its functionality. I would like to implement a "Drive" emulator that would allow users to navigate and manage documents as ...
-3
votes
1
answer
85
views
Small scale document management system architecture / patterns
Im usually working with line of business desktop software. Mostly based on a single database.
Pretty often one of the requirements is to keep track of some files. Or the only way to implement a ...
-4
votes
1
answer
71
views
When to use dot files in Git repositories?
My Git repository contains dot files required by my tooling:
.dockerignore
.gitignore
.pre-commit-config.yaml
I'm using Azure Pipelines for CI/CD, which is typically defined in azure-pipelines.yml, ...
0
votes
1
answer
50
views
PHP: What code should be removed to its own helper class and where should such classes be located in the filesystem?
The following is an example requesting an explanation for one specific file in one specific filesystem, not helper classes generally.
I have configured a LEPP stack on a CentOS server. The server ...
0
votes
1
answer
1k
views
fake filesystem for unit tests
I am writing an application in c++ and Qt5.
It would be very convenient for me to create a virtual file system so I can unit test code working on files.
I have found that in Qt4 there was a ...
0
votes
1
answer
45
views
Test logging library
I've been designing and developing a very scalable logging library for a while.
The main goal of this library is pretty simple. Like many others projects, a simple goal does not mean a simple way the ...
5
votes
1
answer
290
views
Solving file system dependency with database storage
I have a software project A which makes API calls to a third-party software B that is heavily based on data stored on the file system. Also, those software and file systems are distributed on servers ...
2
votes
0
answers
115
views
Is it possible to implement insert file operation in modern extent-based filesystems?
The problem was already discussed here. But there was not consensus on this topic.
I have some thoughts on how insert operation can be implemented for some popular file systems. If FS has extent-...
0
votes
1
answer
102
views
I'm building a file management app and need to know the best approach for dealing with folders
So you open up file explorer on your computer and can create folders, add files, rename, etc. I'm doing the same thing in a web application that interacts with the file system on the server.
I'm ...
-4
votes
2
answers
154
views
Hosting a file system in production?
Sorry if this is broad. But I'm confused on how to scale a file system.
I'm currently working on the server side of a webapp with Node(Express)js, its file system module, and mongoDB.
I'm storing ...
2
votes
0
answers
44
views
What is the most efficient way to find filesystem changes in percentage?
I am planning to write a program that will produce digest logs for file changes in a particular directory. The idea is that whenever a file is deleted in a particular directory, it will show up in the ...
1
vote
1
answer
173
views
How to access a file stored locally on server?
I am working on a web application which allows users to review pdf documents. These documents are submitted from another public facing website. A typical workflow involves:
A document is uploaded on ...
0
votes
3
answers
235
views
How to append a chunk of fixed size data to a file and make sure this chunk doesn't get fragmented on disk?
So i want to understand how DBMS implementation works
To give an example :
MySQL implements each tables with its own pages, which are 16KB
so each table is a file, and is a multiple of 16KB, ...
2
votes
3
answers
102
views
Does a replicated distributed file system minimise the need for durability?
I've been investigating various distributed file systems, like Gluster, Ceph, Moose and Lizard.
I'm also familiar with various key/value store type systems, some of which do not perform any system ...
4
votes
4
answers
814
views
Why do disks write data in chunks of page size?
In my understanding, even if i want to overwrite a byte in middle of a file, OS and/or disk will read the content of the size of page, modify one byte and then write the contents back.
What is the ...
0
votes
2
answers
413
views
Referencing custom Python modules and data files
I'd want to deploy my Python code and relevant static files such that only a copy of a folder is needed. That is, all the paths inside are relative. The release is to a web server, which calls scripts ...
1
vote
1
answer
1k
views
Chat application - write to file and then save in database
I have followed this approach that is described here to implement a simple chat application: https://code.tutsplus.com/tutorials/how-to-create-a-simple-web-based-chat-application--net-5931
I'm ...
0
votes
2
answers
135
views
Detect when a file is created (on a webserver) and ready for use in one of many directories
I have an odd, intermittent bug that is happening on a web server.
One of the methods triggers the creation of a small file (3kb), in a folder. The folder is based on the current year, month and ...
1
vote
2
answers
1k
views
Store file in filesystem, and its metadata to the database atomicly
I have to store many pdf/jpg/png file of max 10mb in a filesystem, and need to save their metadata on a database.
The SFTP and the DB may be on different nodes. On WS, I've a local db where I can ...
0
votes
1
answer
277
views
Using A XML as a Directory File To support A file Managing Application
Second Year Software Engineering student here.
I want to make a file managing system for a C# notetaking app, every note will be represented by a file and will display a small preview of it, ...
12
votes
2
answers
663
views
Does a file system "see" the storage device as a (very large) byte array?
I want to know how does a file system write to and read from a storage device.
I think this is how it works:
A file system doesn't access the storage device directly, but rather the storage device ...
1
vote
0
answers
115
views
Classiest file system locations for my Linux app to write its files?
I have an application I am writing on Linux. It is a Java webapp intended to be run on Tomcat. When it initializes, my application will copy some standalone java utility programs to the host ...
3
votes
2
answers
244
views
Dealing with potential failures when appending data to a file on disk
I'm designing an application that will be appending blobs to a file on disk (local filesystem) and I'm currently thinking of how to deal with consistency issues that could occur if:
The application ...
3
votes
4
answers
805
views
Can file systems be designed and implemented in an OS-portable way?
Given the interfaces that major OSes (Windows, macOS/OS X/Mac OS X, Linux) provide to file systems, can file systems be designed and implemented in a way that is largely independent of OS?
I'm not at ...
1
vote
1
answer
213
views
Controlling permissions for content on web server (pattern/architecture)
I’m working on a proof of concept for a personal project and am unsure how to go about handling ‘permissions’ on content that is uploaded into the application.
Problem:
In this application users ...
1
vote
6
answers
974
views
What are the benefits of storing data contiguously?
I am designing an application file format which will store chunks of user data, ranging from a few bytes to a few gigabytes - median size probably in the 10MB - 30MB range.
I have the option of ...
0
votes
1
answer
227
views
One row database table or JSON file
If I have data that I will only need to update very rarely (once a month), would it be a good idea to use a JSON file instead of a database table with only 1 row?
22
votes
1
answer
6k
views
What is the name for the non-extension part of a filename? [closed]
Given the file path:
/some/path/abc.txt
The filename is "abc.txt", and extension is "txt".
What is the "industry standard", unambiguous name for the "abc" part?
For reference, in both java's older ...
-1
votes
1
answer
331
views
How do you create a Composite file in C++ [closed]
I am looking to create a "Composite file" in C++, basically a composite file is a file containing files, (examples: .docx, .jar, etc) these files can usually be renamed as .zip and opened with a .zip ...
5
votes
2
answers
2k
views
Storing Local Filesystem Paths in Database
I'm developing a webapp where I have sets of data stored locally on my computer and I run a tool which transforms the data and uploads it to my webapp. However, I need to be able to rerun the tool on ...
1
vote
1
answer
3k
views
Storing uploaded images for website
I'm developing a website (using PHP, JS, and MYSQL) which allow user to upload images. My requirements are as below:
User is able to upload 1 or multiple images at a time.
Website is able to save ...
6
votes
3
answers
1k
views
Why would anyone want to build a file system for windows? [closed]
I saw an ad on StackOverflow today for a project called WinFsp.
The site mentions the following features:
Allows for easy development of file systems in user mode. There are no restrictions on what ...
3
votes
1
answer
981
views
VBA Outlook: quickly find subfolder
I have the following structure in my Outlook Public Folders.
-Public Folders
--1001_RandomProject
--1002_AnotherProject
--1003_Yetanotherproject
...
and so on, basically there's a couple of thousand(...
2
votes
1
answer
938
views
What is the most sensible design for making files available for download from a URL?
This is what I need to do, in a nutshell:
Generate Excel spreadsheet files (programmatically).
Store these .xlsx files in a location where they can be accessed by users later. These files need to be ...
6
votes
3
answers
1k
views
What's the point of hidden files?
What is the point of hidden files? In Microsoft Windows they exist, in Mac OS X they exist and in Linux they exist. It seems to me that it just makes detecting malware more difficult. The only upside ...
2
votes
2
answers
445
views
How are non-folder files called? [closed]
Maybe it looks like a weird question, but what term should be attributed inside the code for files that are not folders to differentiate them from folders?
If I need write 2 functions isFolder() and ...
1
vote
2
answers
301
views
Can version control systems use the filesystem log to capture changes?
I was trying to find a "perfect" syncing program between a network share and a local folder, when I realised that it's probably impossible to do it right unless all the filesystem operations were ...
25
votes
4
answers
6k
views
Why is the Git .git/objects/ folder subdivided in many SHA-prefix folders?
Git internally stores objects (Blobs, trees) in the .git/objects/ folder. Each object can be referenced by a SHA1 hash that is computed from the contents of the object.
However, Objects are not ...
1
vote
2
answers
2k
views
Avoid data manipulation by user
I have a C# program (could be any programming language) that saves data to a file on a memory (hard disk, USB drive, etc.). The program uses this data for monitoring its operation time, but it could ...
0
votes
1
answer
155
views
What is a simple way to let a user select a folder from a tree?
I have a Python-Flask app in which users can place files into a folder.
As of now the directory structure is something like:
/app
/storage
/templates
.
.
.
server.py
The user ...
8
votes
1
answer
6k
views
Efficient data structure to implement fake file system
I want to implement a data structure that will hold the paths of directories, sort of fake file system.
Input:- I have a text configuration file containing the paths as follows
...
C:/temp1
C:/...
0
votes
2
answers
358
views
Is renaming an 'alias' for moving?
Is it true to say (on Windows and Unix\Linux\OS X) that renaming a file or directory is just an alias for moving?
e.g.
Are there any side effects to either which are not present on the other?
Does '...
3
votes
2
answers
1k
views
Why do filesystems read and write in blocks?
I read that file systems usually access data in blocks, whose size is integral multiple of disk block size. Why don't they read individual disk blocks?
0
votes
1
answer
237
views
Best way to centralise a php project (except bitbucket)
The structure is as follows:
A: this is the live/production website
B: this is the staging, which is a copy of live
C: this is the testing environment for designers
2 developer and 2 designers. Only ...