filesystems

Specifications for DB file systems?

Hi Is there any specifications (online resources ) avaialbe for DB file system development. Like how the data file is organized and algorithms used for traversal, indexing. Am in a task to build a system to handle the operations like storing and retrieving the documents(JSON) in a custom file structure.. I know there are No-SQL altern...

Python Daemon To Watch A Folder And Update A Database.

This is specifically geared towards managing mp3s but should easily work for any directory structure with a lot of files. I want to find or write a daemon (preferably in Python) that will watch a folder with many subfolders that should all contain X number of mp3s. Any time a file is added, updated or delete it should reflect that in a...

How to convert UNC to local path

I'm looking for a method to get corresponding local path for a given UNC path. Microsoft provides a small library CheckLCL for this purpose. This library is not supported on all Windows versions. Does anybody know any open source method for this? There is also MAPI function ScLocalPathFromUNC, but am not sure if it works on all platfor...

How can I represent a file system's symbolic links in a Perl hash?

On Server Fault, How to list symbolic link chains? (not my question) talks about listing all the symbolic links and following them. To make this doable, let's consider a single directory at first. I want to write a short utility that does this. It looks easy to put pairs from symbolic links into a hash and then process the hash. But ...

The problem about move_uploaded_file() function in php

I ran the code in apache localhost and also tried in my host. In both of them, the method moved the file but the file seemed 0kb. Here is the code: if(isset($_POST['upload'])){ if($_FILES['profile_foto']['size']>0&&$_FILES['profile_foto']['size']<102400){ $image_extension=explode("/",$_FILES['profile_foto']['type']); ...

Uploading photos to linux server via php - what is the max number of files a folder can have?

I'm creating an site which allows users to upload photos. It's a linux server. I was wondering what would be the best directory structure to to save these images? And is there a limit of number of files a folder can have? Would it be better to save every photo uploaded by every user to one single folder and have a reference of each i...

Fast file access options needed

Hi friends, I want my code to process a file very fast. This file size will vary from single KB to even 2 GB. Even i am ready to create a separate file system for that single file. I will split the file as constant size blocks(probably 8KB) and access it for data read and write. The code wise, the algorithm cannot be changed because i...

How do I access a network drive through the usual System.IO classes?

My software handles multiple operations on files, and I have now finished writing the related functions, using the System.IO classes. I now need to add support for network drives. Using a mapping works very well (although Directory.GetFiles is a bit low, and I don't know why), but I'd now like to be able to deal directly with paths such...

Inode Data Structure Differences Between 128-byte Ext2 and 256-byte Ext3

Curious as to the inode data structure differences between 128-byte ext2 and 256-byte ext3 file-systems. I have been using this reference for ext2, 128-byte inodes: http://www.nongnu.org/ext2-doc/ext2.html#INODE-TABLE. I have been unable to find a similar resource for ext3, 256-byte inodes. I have cursorily checked /usr/include/linux/...

Detect directory changes in unix

How could I track changes of specific directory in UNIX? For example, I launch some utility which create some files during its execution. I want to know what exact files were created during one particular launch. Is there any simple way to get such information? Problem is that: I cannot flush directory content after script execution Fi...

One-liner to Recursively List Directories in Ruby?

What is the fastest, most optimized, one-liner way to get an array of the directories (excluding files) in ruby? How about including files? ...

Does HTML5 allow you to interact with local client files from within a browser

I've seen some posts regarding access to files on a client machine by a webpage, namely this question. I'm trying to hop on the "continuously update in the cloud" paradigm for some algorithms I am writing so my users can access the latest versions by simply accessing the webpage. This requires that the program/webpage can start with a ...

iPod library: obtain the filename of a media item

I have several questions regarding filenames and the "iPod Library". I understand I can retrieve MPMediaItems from the "iPod Library". How may I get the filename of a MPMediaItem? (I only need to read the filenames, not save to or otherwise modify the library.) When an mp3 is added to the iPod library (via iTunes), does it keep ...

Looking for a good way to write multiple virtual "files" to one system file

I have an application where there are multiple processes. They share the reading and writing of a set of files that grows over time. I'd rather not expose thousands of files to the user's environment, where it would be much easier for them to accidentally modify or delete one of them. Is there an API that will allow reasonably high perfo...

Tagging file system instead of directories?

In the modern file systems there are files and directories. In a directory, there are sub-directories and files. My question is, wouldn't it be better if all the files were in one place, and each file could tagged? So each file have tags, just like in Stack Overflow: every question has tags. The main advantage, is that searching could b...

Python: How do I create sequential file names?

I want my program to be able to write files in a sequential format, ie: file1.txt, file2.txt, file3.txt. It is only meant to write a single file upon execution of the code. It can't overwrite any existing files, and it MUST be created. I'm stumped. ...

Python: Help with counters and writing files

I was suggested to use a separate file as a counter to give my files sequential file names, but I don't understand how I would do that. I need my file names to have sequential numbers, like file1.txt, file2.txt, file3.txt. Any help is appreciated! Edit: My mistake, I forgot to say that the code makes 1 file when it's executed, and needs...

Reproduce a network filesystem error without a network

I have some software that is usually relies on data that is stored on a local hard drive. However one of my clients is encountering an error that I am unable to reproduce, and I think this may have something to do with the fact that their data is on a SAN. The program crashes randomly, and only when manipulating files. It would be usefu...

Is there any sort of File system transaction mechanism available to .net application?

Hi, I'm implementing a simple update mechanism for an application I'm writing the last part of the update process consist in renaming the current application executable file from something like myApp.exe to myApp.old.exe and then renaming the freshly downloaded and updated file from myApp.new.exe to myApp.exe. I'd like to find a way fo...

Does the FAT filesystem have a signature?

Given the following BPB: The "MSWIN4.1" string is just the "OEM ID" field, and by Microsoft documentation it should not be used to identify FAT volumes. The "FAT32 " string is the BS_FilSysType field, and by Microsoft documentation it should not be used to identify FAT volumes either. So how do i identify that the volume is format...