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...
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...
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...
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?
...
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 $!;...
That's about it. Is OB heavier than including a file?
...
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 ?
...
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...
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...
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 (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) (code example, please)
...
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...
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?
...
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? 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
...
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 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 ...
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 ...
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 ...