folders

How do you get a directory listing in C?

How do you scan a directory for folders and files in C? It needs to be cross-platform. ...

What is the best way to rename (move) file system branches in .NET?

I would like to rename files and folders recursively by applying a string replacement operation. E.g. The word "shark" in files and folders should be replaced by the word "orca". C:\Program Files\Shark Tools\Wire Shark\Sharky 10\Shark.exe should be moved to: C:\Program Files\Orca Tools\Wire Orca\Orcay 10\Orca.exe The same operation ...

Revoke shared folders in windows

Over the last few months/years, I have shared a folder or two with numerous people on my domain. How do I easily revoke those shares to keep access to my system nice and tidy? ...

asp.net mvc - subfolders

How does the new Microsoft asp.net mvc implementation handle partitioning your application - for example: --index.aspx --about.aspx --contact.aspx --/feature1 --/feature1/subfeature/action --/feature2/subfeature/action I guess what I am trying to say is that it seems everything has to go into the root of the views/controllers folders ...

Where did these hex named folders come from?

First off, I am using Windows XP. I have multiple hard drives and it looks like something decided to make some folders on the second one ( which is just a data drive, no os ). These folders all have names like "e69f29f1b1f166d3d30b8c9f7156ba" and "bd92c24cc278614082cd88e7a64b". They contain folders named update, whose "access is denie...

Renaming the containing project folder in VS.net under TFS.

I have a vs.net project, and after some refactoring, have modified the name of the project. How can I easily rename the underlying windows folder name to match this new project name under a TFS controlled project and solution? Note, I used to be able to do by fiddling with things in the background using SourceSafe ... ...

What, if anything is typically done in a repository's structure to reflect deployed units?

This is a follow-up to the question Should the folders in a solution match the namespace? The consensus on that question was a qualified "yes": that is, folders == namespaces, generally, but not slavishly (the way java requires). Indeed, that's how I set up projects. But setting up source control has made me hesitate about my current...

Changing the default folder in emacs

I am fairly new to emacs and I have been trying to figure out how to change the default folder for c-x c-f on start up. For instance when I first load emacs and hit c-x c-f its default folder is C:\emacs\emacs-21.3\bin, but I would rather it be the desktop. I believe there is some way to customize the .emacs file to do this, but I am sti...

How to ignore a directory with SVN?

Just started using SVN and I have a cache directory that I don't need under source control. How can I ignore the whole directory/folder with SVN? Edit: Using Versions and TextMate on OSX and commandline ...

What's the best way to get the name of a folder that doesn't exist?

What's the best way to get a string containing a folder name that I can be certain does not exist? That is, if I call DirectoryInfo.Exists for the given path, it should return false. EDIT: The reason behind it is I am writing a test for an error checker, the error checker tests whether the path exists, so I wondered aloud on the best wa...

How do you check if a folder is accessible over a network in c#

I need to know if a folder is accessible to other computers on the network, so the first part of this is checking if the folder is shared accross the network. As the folder I'm checking may be a sub-folder, I can't just iterate across shared folders on the computer to check if one of them points to my folder unless WMI allows me to chec...

Concatenating arbitrary number of rows of strings in mysql (hierarchical query)

I have a mysql table with albums. Each album can be a top level album, or a child album of another album. Each album has a foldername which is the name of the folder its pictures are in. Each album also has a field called parent which is the id of the parent album. So, if I have a path to an image like this: root/album1/album2/image1.jp...

How to scan a folder in Java?

How can I get a tree of all the files from a current folder in Java? ...

JavaScript - extract folder names

Hello. I'm fairly new to JavaScript. Given a local machine's folder path (Windows), I was wondering how you can extract the names of all the possible folders in the current path, without the knowledge of how many folders there are or what they are called. Thank you very much in advance. ...

data structure for bigger number of files

Hello I'm looking for effective way to sort albums with songs. I have around 10000 and growing albums with approx 10 songs in every album. So that means 100000 files. Now I do not want to store all folders (albums) in one main folder, but I'm looking for a better way to store it. All folders are hierarchy equal, so I was thinking to g...

Projects folder structure recommendation

...

C# Best way to get folder depth for a given path?

I'm working on something that requires traversing through the file system and for any given path, I need to know how 'deep' I am in the folder structure. Here's what I'm currently using: int folderDepth = 0; string tmpPath = startPath; while (Directory.GetParent(tmpPath) != null) { folderDepth++; tmpPath = Di...

What is your method of "folksonomy" tagging for files on your local machine?

Way back in the days when "delicious" was just "del.icio.us", I had assumed that everyone had finally caught on that Ontology is overrated. So why am I still having to roll my own tagging system using sqlite and a bunch of ruby scripts in order to address this obvious deficiency on my own local machine? I can tag on-line web links, blo...

Automatically Copying folders until a certain limit is reached

Greetings. 1 - Let's say I have about 500 folders of variable size with a total size of 100 GB. 2 - I want to distribute these folders automatically in other folders until the size of 700 MB is reached with the best optimization of space. Example: In folder "CD--01" I want to have the maximum number of folders possible without passing...

How do you manage and organize your files? (scripts, repos, downloads, pdf's, etc)

Like many of you, I have to deal with a large amount of files: source code, binary downloads, spreadsheets, pdf's, word docs, images, note files, quick scripts, and more. These files can fall into many categories: Temporary files that should eventually be deleted Important or useful references files that should be archived Files tied ...