filesystem

How to remove some blocks from a sparse file on a ext2/ext3 filesystem

The ext2/ext3 filesystem automatically allocate blocks when you write a sparse file, but when I no longer want some blocks of them, I found no ways to do it. It feels like using malloc() without free(). Is it possible to "free" some blocks of a sparse file? If it is, how? Don't tell me to copy it to a new file. It's too boring and needs ...

svn repository on Windows network share

Is it safe for multiple computers to concurrently access an svn repository stored on a shared filesystem? I'm building an application in which each Windows client machine has a local working set of files, and can periodically synchronize with the rest of the team. From a server standpoint, I'd like to rely on nothing except a Windows sh...

.NET - Reliably Maintaining File System from an Application

I have a mixed application that has data both in a database and in a physical file store maintained by my application. As I have been developing my application I have, on occasion, run into scenarios where I am moving or deleting a file from the hard drive through my application and for whatever reason something will go wrong and an exce...

Check if directory exists in lua?

How do I check if a directory exists in lua, preferably without using the LuaFileSystem module if possible? Trying to do something like this python line: os.path.isdir(path) ...

How to delete files while Traversing folder tree

I am not sure if I am doing this correctly or if my logic is correct. I am trying to go down a folder structure delete files older than a certain number of days, this part I have correctly implemented, delete empty folders. Can all this be done in one loop? Where do I do the folder delete? I want to delete empty folders up to 3 or 4 l...

How to decrypt the encrypted file system data file dump from blackberry using CFP

I use a official tool called CFP(RIM Wireless Device Command-Line Programmer Version 3.9.0.49) dump a blackberry file system data into a file, but this blackberry is a secure device, so the file has been encrypted. (cmd: CFP -u CSAVEFS blackberry_dump.bin) how could i decrypt this file? FILE FORMAT: "...REDFEDMP[SIZE][ENCRYPTED DATA]EK...

PHP mkdir( $recursive = true ) skips last directory

I've got the following piece of code on a PHP 5.2.4 (no safe_mode) linux server: mkdir( $path, 0777, true ); when I enter a path like: '/path/to/create/recur/ively/' all directories are created axcept for the last one... when I add another directory like: '/path/to/create/recur/ively/more/' again, all paths are created except ...

Optimum filesystem structure for scripting language MVC applications

When I speak of scripting languages I am speaking of languages like Python, Perl, and (in my case) PHP. After using CodeIgniter, Zend, and lots of other fun MVC systems it seems clear that one thing one one seems to agree on is the folder structure (alongWithOTher things_like_that). This is really causing a problem for me because I can't...

loopback mounting individual partitions from within a file that contains a partition table on linux

Is there any new/better way of loopback mounting individual partitions from within a file that contains a partition table on linux? I see the following but they are somewhat dated. http://linux.derkeiler.com/Mailing-Lists/Kernel/2005-01/7183.html http://lists.gnu.org/archive/html/grub-devel/2005-01/msg00077.html ftp://ftp.hq.nasa.gov...

How can I receive notifications of filesystem changes in OS X?

In Windows, I can use the FindNextChangeNotification API to watch a file or folder for changes. For example, I can watch a folder and get notified when a file is added or removed. Is there a similar API on OS X? ...

simple VirtualFilesystem for delphi - must be FREE!

Hi, my application stores infos about some files analyzed in given directory... it produces one file for each file found in a directory, so it could be any number ... I need to store those produced files separately, but it's not the best idea to put them like it is ... so I'm looking for some virtual filesystem, which would allow me to k...

Is it correct that "Developers have read-only access to the filesystem on App Engine"?

According to this Wikipedia article on Google App Engine: Developers have read-only access to the filesystem on App Engine. I have heard of App Engine apps that allow uploads and Google also sells additional storage - if so, wouldn't this statement appear to be incorrect? ...

Path Simplification/Reduction

I'm writing some code to manage a custom on disk file structure and syncronize it to unconnected systems. One of my requirements is to be able to estimate the size of a sync prior to actually generating the sync content. As a simple solution, I've put together a map with full path filenames as the key for effecient lookup of already sc...

Recursively search directories in C#

I need to recursively traverse directories in C#. I'm doing something like this. But it throws exception when iterating through system folders. How to check it before exception is thrown? ...

Arbitrary sort key in filesystem

I have a pet project where I build a text-to-HTML translator. I keep the content and the converted output in a directory tree, mirroring the structure via the filesystem hierachy. Chapters go into directories and subchapters go into subdirectories. I get the chapter headings from the directory and file names. I want to keep all data in f...

Determining the physical location of a file and the device status in Java

Hello, I'm writing a program that has to mantain a large catalog of files. Those may be on different devices and I'd like to know what is the best way to do this in Java. I mean that I need to: Identify the device the file (or just a directory) is on and get a name or identifier for this device that will be consistent... Be able to u...

how to write back to an existing file, ensuring the bits on the disk get overwritten in OS X

What API's Cocoa or Core Foundation, can I use to make sure that when I write back to a file that already exists on the storage device, that the bits get written over? The idea is to clear out the bits for security reasons. ...

How can I crawl pdf files that are served on internet using Nutch-1.0 using http protocol

Hi Everyone, I want to know How can I crawl pdf files that are served on internet using Nutch-1.0 using http protocol I am able to do it on local file systems using file:// protocol but not http protocol ...

How to register FUSE filesystem type with mount(8) and fstab?

I've written a small FUSE-based filesystem and now the only part's missing is that I want to register it with fstab(5) to auto-mount it on system startup and/or manually mount it with just mount /srv/virtual-db. How can I achieve this? I know, I can just run /usr/bin/vdbfs.py /srv/virtual-db from some init script, but that's not exactly...

How do I create a directory within the current working directory, in Java

What is the most succinct way to create a directory called "Foo" underneath the current working directory of my Java application (if it does not already exist)? Or, a slightly different angle: What is the Java equivalent of Directory.CreateDirectory("Foo") in .NET? ...