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.

File Systems (or filesystems)

A file system is the specification of how files in a computer should be logically stored, named and organized. File systems present to users a human-readable format of data organization in the computer, where each file is a discrete unit of data.

File systems present only a logical format. They don't necessarily reflect the way the data is physically stored on a computer disk drive, or other storage device. Since the computer actually stores data in bits, data on a storage device lacks any structure; consisting of nothing more than a series of 1s and 0s.

File systems therefore give structure and meaning to that data, by — at the very minimum — giving an arbitrary collection of bits a file name and maintaining a record of this file physical location on the storage device.

Common Elements

Other than file names, common file systems also describe and maintain directories and file attributes, which serve as a means to further structure data organization and to give files specific purposes, security features or functionality.

File systems usually store this information in table-like format in a specific region of the storage device. Each file is listed on this table with its location, length and other properties clearly declared. An operating system that understands the filesystem format can then read this table to access a file in order to edit, rename, delete, move or alter any of its attributes.

For more reading

File System, at Wikipedia

Various file system specifications

9576 questions
4
votes
3 answers

How to get date/time when file was placed in a directory on Windows?

Is there a way to tell when a file was moved to a certain directory? I'm being asked why a script of mine did not find a file in a certain directory. The file was created last January but I suspect it was placed in the directory after the script…
MCS
  • 22,113
  • 20
  • 62
  • 76
4
votes
2 answers

File System Development

When designing a file system that uses an inode structure to point to files/blocks, how is the number of inodes needed actually determined?
4
votes
1 answer

Using symlinks to store data

An application I am working on has the need to make a counter's value persist across multiple invocations, so that each time the application is started again the counter's value is read back and counting continues from there. The value should be…
Fabio A.
  • 2,517
  • 26
  • 35
4
votes
1 answer

Detect if a file was modified, even within the last second, without hashing?

This applies to Mac, but it may also apply to Linux, so I've tagged it as such. I'm recursing through a directory and getting a tree, with filesystem attributes. I then recurse again (and again, and again) each time the window comes back into focus.…
d11wtq
  • 34,788
  • 19
  • 120
  • 195
4
votes
1 answer

Keep track of filesystem (folders/files) states by saving them

I'm looking for a way to track changes of a folder, with sub-folders and files, from time to time - not in real time. Basically I want to know which folders/files that was changed (changed or delete) from the last time I looked. A simple solution…
AxAn
  • 143
  • 12
4
votes
2 answers

A regular checking and cleaning of files in the server

I have the following back-end with socket.io. Each time we open a connection by localhost:3000 in a new browser tab, a file named with the socket id is created in the folder tmp/ of the server. var express = require('express'); var app =…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
4
votes
0 answers

java git-library with configurable in-memory FileSystem

Is there a java-library that operates on a user-provided java.nio.file.FileSystem ? I'm using googles jimfs in-memory-filesystem implementation and would like to clone a git repository into my filesystem and perform a complex series of operations…
Gaetano
  • 1,090
  • 1
  • 9
  • 25
4
votes
2 answers

Saving PDF files in DB or File-System

In my website project, I need to upload the end-user's pdf files and save them. every 3 months I guess to receive around 2000 pdf files with 2MB size for each pdf. What is the best solution? saving the files in hard-disk (in a folder) and save…
Nav
  • 4,450
  • 10
  • 53
  • 84
4
votes
3 answers

File.listFiles returns null when it shouldn't

I am trying to get list of files existing in the Phone Pictures folder (internal storage, no SDCard inserted) using this: File file = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); File[] files =…
Yahya Hussein
  • 8,767
  • 15
  • 58
  • 114
4
votes
3 answers

executing filenames with spaces in cmd pmt Passed from c++ program

I am currently working on getting my program to execute a program (such as power point) and then beside it the path to the file I want to open. My program is getting the file's path by using: dirIter2->path() I get the 2 paths of the program and…
Johnston
  • 2,873
  • 8
  • 29
  • 39
4
votes
4 answers

How to find all files with the same content?

This is an interview question: "Given a directory with lots of files, find the files that have the same content". I would propose to use a hash function to generate hash values of the file contents and compare only the files with the same hash…
Michael
  • 41,026
  • 70
  • 193
  • 341
4
votes
2 answers

How can I overlayfs the root filesystem on linux?

I'm using overlayFS to create a sort of simple experimental sandboxing. I think I understand how it works: lower layer should be always mounted R/O upper layer is where all changes happen work layer is for transactional reasons target is where all…
Emanuele
  • 1,408
  • 1
  • 15
  • 39
4
votes
3 answers

Cross-Platform API to monitor file system in C?

I'm looking for a cross platform library to detect when files in a directory are added or modified. I know there are OS specific way to do this (inotify for Linux, FindFirstChangeNotification for windows, etc...). But is there a platform independent…
cydan
  • 615
  • 5
  • 17
4
votes
1 answer

How do I get details from File Properties?

Possible Duplicate: Read/Write 'Extended' file properties (C#) Does anyone know how to get the information contained in the Details tab of a File's properties window? Any .NET library I'm overlooking? This is the window/information I'm talking…
lazo
  • 583
  • 1
  • 7
  • 13
4
votes
1 answer

How to continuously watch a directory for the presence of files with a certain file-extension?

For example, I want to continuously monitor a directory for the presence of .xml files. As soon as a .xml file is found in that directory, the program should start processing on the file, e.g. reading the data inside the file, extracting useful…
Solace
  • 8,612
  • 22
  • 95
  • 183