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
2 answers

Weird directory entries in FAT file system

So I'm trying to figure out how the FAT FS works and got confused by the root directory table. I have two files in the partition: test.txt and innit.eh which results in the following table: The entries starting with 0xE5 are deleted, so I assume…
Armandas
  • 2,276
  • 1
  • 22
  • 27
4
votes
2 answers

string-append to files in a directory with Scheme

Please note first of all that this is a homework question so I'm not looking for straight code or anything like that, just for someone to maybe help me with my logic. The assignment is in DrRacket. The question asks: Given a FileSystem, which we've…
Mark Soric
  • 1,381
  • 2
  • 9
  • 8
4
votes
2 answers

Writing file on system partition

I am trying to write a file, generated by my app, onto the system partition. As I can not create an FileOutputStream inside my app I create the file in the data directory of my app, correct the permissions and then move it to the system…
Robert
  • 39,162
  • 17
  • 99
  • 152
4
votes
2 answers

Why is '.' a hard link in Unix?

I've seen many explanations for why the link count for an empty directory in Unix based OSes is 2 instead of 1. They all say that it's because of the '.' directory, which every directory has pointing back to itself. I understand why having some…
Joseph Garvin
  • 20,727
  • 18
  • 94
  • 165
4
votes
1 answer

Silent error while copying files

I have the following method of copying files: public static void nioCopy(File source, File destination) { FileInputStream fis = null; FileOutputStream fos = null; FileChannel input = null; FileChannel output = null; try { …
LordDoskias
  • 3,121
  • 3
  • 30
  • 44
4
votes
4 answers

What is the file system on iphone?

Is it HFS, HFS+, HFSX? Is it the same in ipods, ipads and iphones, and across different versions of iOS?
bor
  • 658
  • 7
  • 19
4
votes
2 answers

Cannot monitor word docs using FileSystemWatcher

I have a folder that contains multiple word documents. I need to monitor this folder for any changes in these word documents. I am facing the following problems: FileSystemWatcher never reports the exact name of file being changed. For example for…
Faisal
  • 4,054
  • 6
  • 34
  • 55
4
votes
1 answer

Does the .NET browser-wasm runtime have a virtual file system?

The new (non-Blazor) browser-wasm runtime of .NET 7 allows for .NET projects to be compiled to WebAssembly and run in the browser. There is limited documentation for this, but a lot of the details are still either undocumented or hard to find. If…
curiousdannii
  • 1,658
  • 1
  • 25
  • 40
4
votes
9 answers

How to "walk around" in the File System with Java

I'd like to do a search for folders/directories from java, and go into those folders/directories in java. I guess it's called system utilities? Any tutorials out there, or books on the subject? Thanks ;)
user89862
4
votes
1 answer

How is TreeSize Free so fast at listing folder sizes?

The program TreeSize Free can list folders inside a directory and sort them descendingly according to their file sizes to find the biggest folders/files for cleaning up your harddrive. I'm wondering how they're doing this so fast. Assuming I wanted…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
4
votes
3 answers

Will string.Trim() ever remove *valid* characters from a filename?

I'm creating a class to store a filename. To do so, I need to know exactly which characters are invalid and exactly which characters are invalid as leading/trailing characters. Windows Explorer trims leading and trailing white-space characters…
Triynko
  • 18,766
  • 21
  • 107
  • 173
4
votes
5 answers

How to output a directory tree as HTML?

Here's what I've got so far: project_dir = '/my/project/dir' project_depth = len(project_dir.split(os.path.sep)) xml_files = [] for dirpath, dirnames, filenames in os.walk(project_dir): for filename in fnmatch.filter(filenames, '*.xml'): …
mpen
  • 272,448
  • 266
  • 850
  • 1,236
4
votes
1 answer

In MacOS Ventura file system has changed, Apple Menu shut down, restart are not referred from StandardMenus.nib. What is the new way that is referred?

Earlier MacOS versions taskbar menu were referred from StandardMenus.nib/object.xib. The current MacOS Ventura doesn't have anything mentioned about Shut Down, Restart, Force Quit mentioned under object.xib. Also noted a new file Menus.loctable…
krisdeegee
  • 51
  • 1
4
votes
1 answer

What determines the encoding of File#path?

In ruby 1.8.7, what determines what the encoding of File#path will be? The filesystem? A configuration somewhere? The encoding of each individual file? I've seen two different encodings in otherwise identical environments on different OS's. Related…
John Bachir
  • 22,495
  • 29
  • 154
  • 227
4
votes
1 answer

Can you transfer/recreate a unix domain socket file across filesystems?

As I understand it, a unix domain socket is a file (with its own FS inode) that internally points to a socket inode (namespaced internally by the kernel). This is evident by inspecting the file descriptors of the binding process, returning a value…
Qix - MONICA WAS MISTREATED
  • 14,451
  • 16
  • 82
  • 145