folders

What is the best folder distribution on Linux for user private folders?

In our site, users can have many private files. We are thinking what could be the best distribution so as to avoid destroying the server's performance, These files are served through Apache and should be listed each time the user needs to manage them. Our first approach right now is: var first_level = (int) $user_id/100; var files_fold...

How do I unlock a folder/file under Linux

Today I had the problem that I couldn't delete a folder because "it was busy". How can I find out which application to blame for that or can I just delete it with brute force? ...

Popular folder structure for build

I am wondering what the popular or best way to organise your build assets and source code within a project is? ...

Windows and renaming folders, the 'con' issue

Why in Windows, can't you name a folder 'con'? Whenever I try to name a folder as "con" (without the quotes) it defaults to its original name. Why does it do this? ...

Set OpenFolderDialog to a special folder

Hi, I know it is possible to set the current folder of the OpenFolderDialog to a special folder, like "Program Files" or Desktop? But where do I find this? ...

How do I get the size of a directory in C?

Is there a POSIX function that will give me the size of a directory (including all sub-folders), roughly equivalent to "du -s somepath"? ...

How do I create a "virtual" folder in a Visual Studio 2008 project?

I want to create a folder inside a C# project to contain some configuration files. However, I don't want these files to be copied to bin\Release\MyFolder. I'd rather have them copied to bin\Release directly. I'm thinking this may be doable by having a "virtual" folder, like solution folders, but I don't know how to do it. Is there a way ...

ProgressBar when Scanning a Hard Drive

So, I'm doing a simple scan to get a list of all folders on a hard drive (c:\windows and c:\windows\system32 are considered separate entries). If I wanted to provide a progress bar for this 1-2 minute task, how would I do so? That is, I know how to make the progressbar but am not sure how to determine how much of the work for it is don...

Is there a way I can create Exchange folders and set permissions through .NET calls?

I'm looking to build a snippet of .NET code that will go into an Exchange server and create a Public folder. Along with this I'd like to be able to set the permissions on the folder. If it's easier to copy one folder to a new one and copy over the permissions that way, that's okay too. Has anyone done this before? ...

Image Upload Service - Image locations and Image Identifiers

I would like to create a image uploading service (yes, i am aware of imageshack, photobucket, flickr...etc) :) I have seen only imageshack show the directory names ("img294", "1646") of where the image is located, in the same way - i would like to do this. http://img294.imageshack.us/img294/1646/jquery**kd5**.jpg 1) Are there any sec...

How to get rid of . and .. while scaning the folder creating an array in php?

If you scan a folder containing other folders AND files, how do you get rid of . and .. and files? How do you put in array only folders WITHOUT . and ..? I would like to use regular expression, but I'm newbie and I can't get it right. My code is now this but doesn't work: if(fnmatch("\.{1,2}",$dir_array[$i]) || is_file($dir_array[$i]...

How does software like hide folders or truecrypt work?

I am particularly interested in a how hide folders work or how can it be achieved programatically (.net). How can I create a folder such a way that its hidden Does not appear in search (even if hidden folders are opted) No files system structure modifications are required How are folders encrypted. Any links or advices would be grea...

How can I get windows explorer to "browse to next folder"? (vbscript/batch etc...)

Hello. I use the basic windows explorer to browse a large collection of images. I have a very well organised group of folders and I don't need/want any of the extra functionality of photo organisers such as picasa etc... The only drawback is: I'd really like to be able to browse from one folder straight into the next, without having to...

How can I recursively copy a directory into another and replace only the files that have not changed?

Hi all, I am looking to do a specific copy in Fedora. I have two folders: 'webroot': holding ALL web files/images etc 'export': folder containing thousands of PHP, CSS, JS documents that are exported from my SVN repo. The export directory contains many of the same files/folders that the root does, however the root contains additio...

Folder "drop box" with custom behavior

I'm thinking of trying to create a "drop box" application that can automatically organize files as you drop them into a folder. I always end up with a bunch of random files on my desktop, and I think it would be useful to be able to drag them onto an icon/folder on the desktop and have them automatically sorted into other locations base...

ASP MVC Folder Hierarchy

I have a fairly large ASP MVC application. Instead of having many controllers all in the controller directory I would rather create some hierarchy. So I might have something like ~\Controllers\Security\ ~\Controllers\Maintenance\ ~\Controllers\Reports\ I would also like to be able to do similar with Views ~\Views\Security\Users\ ~\Vi...

Why do empty folders disappear when adding Visual Studio solution to TFS?

I have this Visual Studio solution that includes a project that has a template folder tree consisting of several empty folders. When I add this solution to Team Foundation Server (TFS) using the "Source Control -> Add Solution to Source Control" menu item it doesn't add the empty folders to the TFS repository! I really need those folder ...

Visual Studio projects with multiple folders

Is there an easy way to use multiple folders in a project with Visual Studio? It has "filters" which look like folders, but it would be really nice to be able to make folders and insert files in them inside VS. Is there an add-in or secret option to enable this behavior? ...

Protect folder from external requests

Hi, Im working with asp.net 2.0, and i have a folder into my application path ~/Data/ with some .mdb files. I would like to protect this folder from external request like http://www.whatever.com/Data/whatever.mdb But i would need to give any permission to my application, cause im using OleDBConnections agains the ~/Data/ Path. What ...

Several Zend framework projects in the same root folder

Zend Framework project structure presumes you run only one application per server, like localhost/guessbook, where controllers and stuff are located one folder above that level. How can I have a few different ZF-based projects in my localhost so that to address them like I do with regular php script apps - with localhost/app1, localhost...