Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [directory-structure]

According to Wikipedia, in computing, a directory structure is the way an operating system's file system and its files are displayed to the user. Files are typically displayed in a hierarchical tree structure.

0
votes
0answers
14 views

Golang: Directory structure for Multiple Applications

I'm POCing a Go-app for my organization. I've read all of the intro docs on setting up a Go workspace, packages, etc. However, I am still unclear about the relationship amongst the recommended ...
-2
votes
1answer
37 views

Grouping types in a single project [duplicate]

I have many models in my project that are unrelated to each other. I wanted to group them but I wonder what's better: Folder/namespace per group Group1.Constants, Group2.Constants Group1.Models, ...
0
votes
1answer
48 views

Domain services structuring

Currently i am handling placing my services by their action type like App Services Storage Payments Providers Gateways IpnHandler But i felt like whenever our payment providers are growing i ...
6
votes
1answer
2k views

In-Source Build vs. Out-Of-Source Build

In my (primarily C++) development, I have long adhered to using out-of-source builds. That is, my source usually sits in a /project/src directory and the builds live in a /project/build/bin/release, /...
0
votes
1answer
491 views

What should be placed in the “core” folder in a software project?

I want to know which are the rules so i can figure out what code files should be put in the "core" directory (and sub-directories), because i didn't get it yet. I was thinking if it's about code ...
0
votes
1answer
80 views

What is separating code by type vs. by function in called? [closed]

In for example web-frontend development, there are two main ways to structure a project: client -js -component_1.js -component_2.js -html -component_1.html -component_2.html -css -...
1
vote
0answers
108 views

Classiest file system locations for my Linux app to write its files?

I have an application I am writing on Linux. It is a Java webapp intended to be run on Tomcat. When it initializes, my application will copy some standalone java utility programs to the host ...
2
votes
1answer
529 views

Understanding the worker layer in software architecture

I'm new to Java, I've been mostly a scripter. I recently started working at an all Java shop and have been investigating the architecture. I've encountered more than one project with a directory ...
3
votes
1answer
159 views

Best way to structure NoDB (flat-file) website with multiple categories and subcategories for performance and maintainability

I'm building a boutique website using Kirby (a flat-file CMS) and I'm looking for a way to structure the site for best performance and maintainability. The website will have multiple categories and ...
7
votes
3answers
412 views

What would be a good approach to generate a tree of folders?

Say I have an array of strings, like this: var folders = new[] { "Foo", "Bar", "Foo\Bar" "Foo\Bar\Baz" }; And that I have an object that represents a folder - something like this: ...
3
votes
2answers
2k views

What is the role of the public folder in MVC web applications? [closed]

Must all the controllers, models and views be placed in the private folders? If so, what are the roles of the public folder? What are the correct terminologies for such roles in computer science? How ...
3
votes
1answer
4k views

Folder structure for app with Symfony 2, React, Webpack, and Sass? [closed]

I am creating an app that uses some components of Symfony2 along with React, Webpack and Sass. We will mostly code in PHP, with the other things adding functionality to our app. I'm having a hard time ...
0
votes
1answer
170 views

Should source control file directory match solution/project namespaces?

My team is trying to decide how to best organize/structure our TFS directory. One proposed solution is to create a directory structure that will dictate the namespaces for our c# projects. For ...
2
votes
1answer
442 views

How to handle a project in git with the same code but different templates?

I have a project where the only difference are the templates. The question is how should I manage this with git now? At the moment I have 3 different git Repos, but it's hard to maintain all 3 of ...
0
votes
1answer
86 views

How should I structure my web app for browser compatibility?

We want to be able to implement cross-browser compatibility by overriding markup, scripts and styles only where necessary. We want to avoid forking everything sent to the browser, as has been done in ...
0
votes
1answer
297 views

File sharing web application - folder PIN code entry best practice

I'm developing a web app for internal file sharing and one of the requirements is to have PIN code protected folders. What I came up now is a folder like structure with the following: Folder ...
5
votes
2answers
1k views

Delete unused source code from the repository or keep an archive folder?

At our company, we have a single version control repos with a structure like this: /client1_product /client2_product /... /shared_lib1 /shared_lib2 /... After almost two decades of development, this ...
-1
votes
1answer
123 views

node deep file indexer module cannot go deep [closed]

I'm trying to make a file indexer by node.js. The program is supposed to index files and folders in an array and also check inside folders and add all sub folders and files I wrote: fs.readdir(...
1
vote
1answer
581 views

How to organize large polyglot projects?

One of my projects started as PHP but recently some of the new functionality has been written in JavaScript on Node.js platform. How do big polyglot projects that use multiple languages to write ...
1
vote
1answer
135 views

Should a bin directory be full of shell scripts? [closed]

New guy on the team so I figured I'd ask here in public than sound like a complete dweeb and ask elsewhere. Without giving too much or anything away (please ask questions if you want), but should, or ...
0
votes
2answers
2k views

Serving a file from a private directory [closed]

I have a PDF that needs to be accessible for multiple unrelated areas across a website. I don't want to reveal anything about where the file is downloaded from and I want to only upload the file once. ...
2
votes
1answer
119 views

How to organize all classes derived from SRP?

As the SRP says, the way to achieve this principle is divide all into smaller. And what you have just made small, make more smaller. As consequence we got more files and my question is about it, how ...
0
votes
1answer
3k views

Project directory structure

Actually i'm using this project directory structure http://framework.zend.com/manual/1.12/en/project-structure.project.html But recently i started using namespaces in all my php-classes like: ...
2
votes
1answer
909 views

Folder structure or database structure for creating/editing 'files'?

As a hobby experiment I am creating a on-line tool for creating web sites with the ability to create custom HTML and CSS using a template engine for safe-use of functionality. Now I am in the ...
1
vote
1answer
284 views

Best way to search through directory structure

I'm working on a python program which organizes a music library. The program will basically help me detect misspelled file or directory names, wrong FLAC tags or unknown/superfluous files. It will ...
1
vote
2answers
3k views

Shared source file between two parts of project [closed]

I have the following sort of directory structure: part1 build src part2 build src Now I have a header file that I would like to include in both parts of these projects, it will ...
2
votes
0answers
511 views

How to organize cross platform js/web application?

My friend and I are working on an application that already works for Windows 8 and is written in Javascript, HTML, and CSS. Our desire is to make it cross platform for areas like windows mobile, ...
0
votes
1answer
1k views

REST API internal directory structure and RewriteEngine

I'm building a REST API. I don't want to have real folders in my directory structure, but I'm not quite sure what to use else. My REST API uses paths like this: api.server.com/<object>/<...
8
votes
1answer
6k views

Node.js app private modules. Where to put them?

The situation would be: I develop 2 projects in my Node.js development environment, P1 and P2. P1 required the development of two simple modules, mod1 and mod2, which are stored in P1/lib. Each one ...
4
votes
1answer
4k views

Directory structure (file system design)

I was looking at how file systems are designed and noticed that most places say that the directory hierarchy can be implemented using a hash table. Could someone please explain me how using a hash ...
5
votes
4answers
2k views

how to structure MVC models and ORM models

I have some trouble getting a good folder structure in my project and i would like to know what other ways i could use to structure my files. I'm currently working in an MVC sturctured folder. www/ ...
10
votes
1answer
3k views

Purpose of the csx folder in Azure projects? [closed]

I'm fairly new to Azure but I noticed that Visual Studio auto-creates the following folders (among others) ... /<nameOfAzureProject>/bin /<nameOfAzureProject>/obj /<nameOfAzureProject&...
95
votes
4answers
64k views

What is the difference between the “lib” and “vendor” folders?

Regarding source folder hierarchy, there are always some common features, such as the src, doc or test folders, which have rather easy-to-understand contents. However, I realized that big projects ...
1
vote
1answer
211 views

what to do with your bin directory [closed]

To get off my noob status i am following the Learn python the hard way course. I really like it but at one point it says make a bin directory. In all games and other programs i saw to a bin ...
6
votes
2answers
5k views

Write a directory structure (pseudo code) [closed]

I am writing a wiki article and wondering what is the proper way to write a directory scheme? I am doing something like main folder - sub folder - sub folder ... But I'm stuck after that. Any help?...
18
votes
3answers
13k views

When should a class or module be in a separate Assembly/DLL?

Are there any guidelines for deciding when a class should be in its own assembly/DLL? I often see two schools of thought: 1) Every "grouping" of classes belongs in its own DLL e.g. Repositories, ...
4
votes
2answers
519 views

Need help with directory structure in porting codebase to SVN

Currently we've got a directory structure that looks like this +Inhouse App A +Inhouse App B +Core files for inhouse app B +Inhouse App C +Something that never came to fruition +Forgotten Server ...
2
votes
3answers
225 views

Reasons for separate source and generated trees

What are the reasons for putting the generated files in a tree parallel to the source trees? For example, in Eclipse I usually choose to put the sources to .../src and the compiler generated files in ....