directory-structure

Move common include files to a separate directory, yet keep them easily editable within eclipse?

We are using Eclipse+CDT+SVN(Linux). How can we have some common header files in a separate include directory, which is also in the SVN, but not in the project specific subdirectory. The main goal would be to create some common, reusable code for multiple projects and to be able to easily edit/commit that code within eclipse. We have d...

Storing Directory Hierarchy in a Key-Value Data store?

What is a clean/efficient method for storing the directory Hierarchy/tree in a Key-Value database (in my case MongoDB but any of them). For example a tree structure - Cars + Audi + BMW - M5 + Ford - Color + Red - Apple - Cherry + Purple - Funny The method I am using now, each object links to it's p...

C# OpenFileDialog Lock To Directory

Hello everyone! I am making a software that needs to ONLY be able allow people to select files and folders using the OpenFileDialog that are in the same directory as the program and that are in deeper folders. I don't want the OpenFileDialog to be able to select stuff outside of the program's current directory. Is this possible to do in ...

src/main/webapp directory not recognized by Eclipse

I use m2eclipse to import Maven Java projects in Eclipse. It fails to recognize src/main/webapp as a source directory. Graphically in the package explorer (or when I look into Java-Build-Path in the project's properties), this directory isn't in the list of sources folder (while src/main/java or src/main/resources do). To access it, I...

An XML language for describing file attributes of a directory tree?

I have an application in mind which will record directory listings of a file system in text form. That is, it should say something like: File name is: abc.txt Last modification date is: 2009-12-31T01:23 Read-only attribute is: True Hidden attribute is: False The listings will persist for years in a long-term archive, so the language s...

Sharing utilities modules across python projects.

Hi, What would be the best directory structure strategy to share a utilities module across my python projects? As the common modules would be updated with new functions I would not want to put them in the python install directory. project1/ project2/ sharedUtils/ From project1 I can not use "import ..\sharedUtils", is there any other...

How do I append all files in current and subdirs as command arguments?

I have a directory like this: dir dir/somefile.txt dir/subdir/subsub/somefile2.txt dir/subdir2/somefile.txt and I want to open all the files in all the subdirectories in a single instance of a command. I was trying find with -exec, or xargs, but these open each file with a separate instance of a command. Basically, I want something t...

How can I copy an entire directory in Perl?

I need to copy entire directory to some location. What is the best way to do so ? File::Copy copies only file by file as I saw it. By the way I work under Windows. Thanks for help. ...

Best place to store reference directories for unit tests in boost?

I'm trying to write a library which unzips a zip file contents to an existing directory, replacing the content of only the folders which exist in the zip file. In order to do this I am employing the use of the Boost Unit Testing framework. Before each test I wish make a copy of an existing directory, the copy of which will serve as the...

AnkhSVN and/or TortoiseSVN - what's the recommended way to change directory structures?

I'm a fairly new user of Ankh and Tortoise. Currently ramping up on a VS2008 application suite that will have multiple .exe files, but with a lot of common code. Currently, we're sharing code between .exe projects by putting source files in a "Shared" folder tree, and using "Add as link" in all the VS2008 projects that need to compile ...

Java: Nested Tree Structure

I am looking for a way to create a nested tree structure in my GUI. I have a few "boxes" that have items in them. I would like the boxes to be collapsed but expanded when clicked on, like the way folders are navigated on the sidebar. The first way I considered was treating the "boxes" as JList, with the items in each box stored in a nest...

Add DIR to application dir Zend Framework

Hi, I whant to use some classes that are not part of ZF. I have a dir classes in application dir and the classes dir contains classes that are required as object or static. In Bootstrap i "load" every class.php. Zend_Loader::loadFile('TimeZones.php', APPLICATION_PATH.'/classes/', false); How can I have all the classes by default loa...

Separate Subversion branches per programming language?

In some projects, I have to deal with more than one programming language (for example a Delphi GUI application which communicates with an C# or Java app). The Subversion repository currently contains three top branches, one per language. Should I change this and group all parts of the project in the trunk like in the following example ...

What should my directory structure look like for user assets in a web application?

In my web application, each user will have a logo. I am pretty sure each user will also have a photo gallery in the future. What is the best way to set up a directory structure for managing user logos and possibly other assets such as photos? Also would be good to get people's opinions on what to store in the database. My application...

C#: what is the simplest way to sort the directory names and pick the most recent one?

I have a list of directories in a parent directory. These directories will be created in a format like 00001, 00002, 00003... so that the one with the bigger trailing number is the recent one. in the above instance, it is 00003. I want to get this programmatically. thanks for any help.. ...

Storing source files outside project file directory in Visual Studio C++ 2009

Visual Studio projects assumes all files belonging to the project are situated in the same directory as the project file, or one underneath it. For a particular project (in the non-Visual Studio sense) this is not what I want. I want to store the MSVC-specific files in another folder, because there might be other ways to build the appli...

os.walk() python: xml representation of a directory structure, recursion

Hello, So I am trying to use os.walk() to generate an XML representation of a directory structure. I seem to be getting a ton of duplicates. It properly places directories within each other and files in the right place for the first portion of the xml file; however, after it does it correctly it then continues traversing incorrectly. I a...

Finding paths for packaged non-java files at runtime

So this might be a stupid question but... I want to package a specific WSDL file in with an EJB project within eclipse. What would be the best way to refer to this file in my code? I would like to use a relative path but the current directory starts off in the /bin directory of my JBOSS installation. It seems like there should be a wa...

Rails: Where to place plugin files

I am relatively new to Rails and recently found a couple of useful gems like authlogic that will help in getting the project up and about really fast. However, I have been wondering where to place the model, view, and controller files that are dependent on the plugin, but are core concepts of my project. For example, is it better to pla...

Moved an app on asp.net and suddenly libs are no longer found

I have moved an asp.net from the c:-drive to d (well, I did not move it, but first created a new virtual directory on d:\ and then copied the files over and finally removed the old dir from c:). And I restarted the machine. This worked partially: I can launch aspx-files on the new location, but dependend libararies are no longer found n...