folders

What folders are commonly used by version control systems?

I need to know what folder names are commonly used by Version Control systems. Many VCSs will create a hidden folder, usually in the top level of the source tree, to store the information that they use. So far, I only know that Git uses .git/ and SVN uses .svn/. What are the folder names that other popular VCSs use? ...

Windows 7 Create Folder in "Program Files" failing in C# code even thought I have admin rights!

Hi, I am unable to create a file under "program files" folder on my Windows 7 64-bit machine in VS 2008 WPF C# code. The error I get on the following code myFile = File.Create(logFile); is the following. (this is the innerException stack trace). at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) ...

Routine for windows recursive copy of a folder - just subfolders with a certain name

Should be suitable for copying from UNC drive. Only subfolders named "XYZ" and their chidren are copied. Parent hierarchy is kept. Is there one line routine for doing that ? Generally speaking anything will do ( .Net , PowerShell ). ...

J2ME private folder(only accessible to my midlet)

I have two midlets, one will download some files form server everyday and the other uses these files. If i download the files to a normal folder the mobile user may delete the folder or files manually. So i need a private folder which is hidden and only accessible for my midlets. I heard about private folders which symbian platform pro...

Windows batch file to delete folders/subfolders using wildcards

I need to delete all folders in "tomin" folder, which name contains terminates with the ".delme" string. The deletion need to be done recurively: I mean on all directory and SUB directories. I though to do this: FOR /R tomin %%X IN (*.delme) DO (RD /S /Q "%%X") but it does not work, I think /R ignores wildcards. Before asking this q...

How can i Rollback for files/folders corresponding to the changes done?

I am using PHP and Mysql I have PHP script in which I rollback all the data in the database such data all the old value be reset to the database if update is done, and all new value gets deleted if new insert has been done. Now my goal is to perform the same process with files/folders associated with the changes done, I am not able to ...

Synchronize folders using C

I want to synchronize the contents of two folders using C. I don't have any line of code, I simple want someone to suggest a good tutorial to start with. ...

Create Folders from text file and place dummy file in them using a CustomAction

I want my msi installer to generate a set of folders in a particular location and put a dummy file in each directory. Currently I have the following CustomActions: <CustomAction Id="SMC_SetPathToCmd" Property="Cmd" Value="[SystemFolder]cmd.exe"/> <CustomAction Id="SMC_GenerateMovieFolders" Property="Cmd" ExeCommand="for /f &quot;tokens...

Rails: Creating subfolders in model?

I'm going to have a ton of subclasses, so want to organize them under a subfolder called stream. I added the following line to the environment.rb so that all classes in the subfolder would be loaded: Rails::Initializer.run do |config| ... config.load_paths += Dir["#{RAILS_ROOT}/app/models/*"].find_all { |f| File...

In Ant, copy all files from a tree of folders into a single folder?

Is it possible to use Ant to copy all the files (not folders) from a hierarchy of folders into one destination folder? For instance, I have a tree like this: res |-images | |-fg.png | +-bg.png +-sounds +-music.mp3 And I would like a result like this: data |-fg.png |-bg.png +-music.mp3 The way things are named, filename confli...

using rails: how to display all contents of a subfolder in an rails application?

hi, i would like to display the all contents of a folder in my site. For example, under www.mysite.com, I have a folder called "myfiles". In regular apache setting, if I type: http://www.mysite.com/myfiles/ and if myfiles does not have index.html or index.php, then I can get this: **Index of /mysite/myfiles** Parent Directory Chang...

is_dir does not recognize folders

Hi I am trying to make a function that scans a folder for subfolders and then returns a numeric array with the names of those folders. This is the code i use for testing. Once i get it to print out the folder names and not just "." and ".." for present and above folder all will be well, and I can finish the function. <?php function su...

How do I test to see that a directory is empty in ANT?

How can one test to see that a directory is empty in ant? ...

SVN project folder tree structure vs production folder tree structure

While developing a PHP+JS web application we always try to separate big blocks of code into small modules/components, in order to make these last ones as much reusable as possible in other applications. Let's say we now have: the EcommerceApp (an ecommerce main application) a Server-file-mgr component (a component to view/manage file ...

Manage a list of watched folders/files and exclusions, including children

I have a program that's watching for changes to certain files in a list of folders, including children (if a folder is watched, it will watch all children). I want to add the ability to exclude certain children from this process, but I'm not sure how best to process it or store the "Rules" for this. For example, here'a a tree I might wat...

PHP Dynamic Folders

Using PHP, how can you make a dynamic folder system, like http://website.com/user/UsernameHere/ show something like http://website.com/user.php?name=UsernameHere Does this require server configuration, or is it possible with PHP? ...

Sharepoint 2010: Can't create a folder in a custom list

Hi, I'm trying to create folders in a set of custom lists I've created. However, when I try to do this, the New Folder button in the Ribbon is disabled. I read up on the matter; and this lead me to look to enable folder creation in List Settings -> Advance Settings. However, there doesn't seem to be an option to enable folder creation o...

Using php to create a Folder select list - including child folders?

Hi all, I'm trying to use scandir to display a select list of folders listed in a specific directory (which works fine) however, I need it to also add the child folders (if there are any) into my select list. If anyone could help me, that would be great! This is the structure I want: <option>folder 1</option> <option> --child 1</opti...

How to create folders in Vim (by preference using NERDTree)?

I know how to create rename, delete and move files in NERDTree (just pressing m + a, d, or m). But I can't figure out how to create a folder. Does anybody know how to do this on NERDTree (or just in vim's native "way")? ...

what does 'com' stand for in package names and folders?

I tried googling this but can't find anything. I'm just curious as to why we use the folder name 'com' as the root directory? what does it stand for? computer? haha. thanks ...