filesystem

Putting 3 million pages in 1 folder vs. putting them in a number of sub-folders, which structure is faster for reading and writing?

If I have 3 million pages, which directory structure is better? Method 1. ~/123456789.htm (Putting all the 3 million pages into the same folder without any sub folders) Method 2. ~/789/123456789.htm (Create 999 sub-folders, each sub-folder contains about 3000 pages) For Windows Server 2008, which folder structure is fa...

Downloading files and save it to a hidden folder on iPhone

Hi, can some give me a good resource for the iphone filesystem? Basically I want to know: Where can I save my downloaded files into which folders? And which are not allowed? Which of these folders are hidden? (which won't be backup extracted) These files should stay on the device. Want I'm trying to do is this: The user can download...

Grabbing windows file information.

In C following this article (http://blogs.msdn.com/oldnewthing/archive/2006/12/21/1340571.aspx), we have succesfully been able to grab the file version information out of windows files however there are some files that seem to have a different mechanism for storing the version information that is not addressed in the article and was wond...

How to get started on implementing a distributed filesystem?

What resources would you recommend I look into to get started on implementing a basic distributed filesystem? Are there any open source distributed filesystems that are simple enough to be a good starting point? ...

What is the universal way to use file I/O API with unicode filenames?

In Windows there is a common problem: the filenames should be converted to local codepage, before they are passed to open(). Of course, there is a possibility to use Win32::API for that, but I don't want my script to be platform-dependent. At the moment I have to write something like: open IN, "<", encode("cp1251", $filename) or die $!;...

Is output buffering more expensive than FS hit?

That's about it. Is OB heavier than including a file? ...

Windows Filesystem Minifilter Drivers: can I monitor and prevent FS operations using them?

I need to: 1. Monitor operations on certain drives/paths 2. Prevent read and/or write operations on certain drives/paths For example: C://Users D: Can this be done using Windows Filesystem Minifilter Drivers ? I am mostly interested in step 2. In other words can a minifilter cancel a IRP ? ...

Synchronized network based File System?

I'm looking for a solution that can probably be best implemented at FileSystem level as a Network based Synchronized Filesystem: I want to one-way synchronize files between two machines. However instead of pro-actively syncing everything, I want to do it "on-demand" i.e. whenever a program on the replicated machine accesses a file of th...

How to model file system operations with REST?

There are obvious counterparts for some of file systems' basic operations (eg. ls and rm), but how would you implement not straightforwardly RESTful actions such as cp or mv? As answers to the question How to implement copy paste of a resource in REST? suggest, the preferred way of implementing cp would include GETting the resource, DEL...

What is the fastest way to calculate a Windows folders size?

I need to calculate the size of hundreds of folders, some will be 10MB some maybe 10GB, I need a super fast way of getting the size of each folder using C#. My end result will hopefully be: Folder1 10.5GB Folder2 230MB Folder3 1.2GB ... ...

Adobe Air how to check if folder exists?

Adobe Air (2.0) how to check if folder exists? (like folder C:\Program Files (x86) on windows) (code example needed, please) ...

How to put\save files into your application directory? (adobe air)

How to put\save files into your application directory? (adobe air) (code example, please) ...

[boost::filesystem] performance: is it better to read all files once, or use b::fs functions over and over again?

I'm conflicted between a "read once, use memory+pointers to files" and a "read when necessary" approach. The latter is of course much easier (no additional classes needed to store the whole dir structure), but IMO it is slower? I'm trying to list the filenames and relative paths (so the compiler can do with them what it needs to). A lit...

Get info for remote audio files

to get metadata for audio file i can use: NSDictionary *aMetadata = [aPath MDIAttributes:[aPath allMDIAttributesNames]]; but it doesn't work with remote files, in case of images i solved this problem with CGImageSourceRef and so on functions. Does anybody know something like this for audio files? ...

boost::filesystem::path(std::wstring) throw exception

hi. this code: boost::filesystem::is_directory("/usr/include"); work fine. both this code: boost::filesystem::is_directory(L"/usr/include"); throw an exception: terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid OS - Linux Mint boost-1.43 gc...

Where do filesystems like Reiser, NTFS, etc store the file tables?

Where do filesystems like Reiser, NTFS, etc store the file tables? We're looking at writing our own filesystem, and wondering if we should use a single file to hold it all using btree's or use something out there. Any advice? This is more a learning exercise than anything. Edit: removed NFS, and replaced with NTFS ...

Sorting shell items like windows explorer

Hi, I am making a bread crumb bar in Delphi and having some problems regarding sorting the dropdown of the bread crumbs. Strangely enough, even Vista is not consequent when showing these items. I have tried many ways to figure out what is system folders, what is zip files and what is normal folders. It seems like an easy task but so f...

Is there something like a Filestorage class to store files in?

Is there something like a class that might be used to store Files and directories in, just like the way Zip files might be used? Since I haven't found any "real" class to write Zip files (real class as in real class), It would be nice to be able to store Files and Directories in a container-like file. A perfect API would probably look ...

boost::filesystem - how to create a boost path from a windows path string on posix plattforms?

I'm reading path names from a database which are stored as relative paths in Windows format, and try to create a boost::filesystem::path from them on a Unix system. What happens is that the constructor call interprets the whole string as the filename. I need the path to be converted to a correct Posix path as it will be used locally. I ...

are expanded war files faster?

I'm using embedded jetty to launch a web application which I have currently packaged as a war file. At first I was trying to prevent my war file from being expanded; then I began to wonder: Q: is there some advantage for jetty to expand the war file contents? And even if its slower... Q: how can I prevent jetty from expanding it (or ...