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 ...
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...
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...
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)
...
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...
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...
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 ...
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...
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...
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?
...
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...
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?
...
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...
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?
...
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...
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...
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.
...
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
...
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...
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?
...