Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
3 answers
928 views

Folder structure to store image/file uploads

I'm working on a system and we need to do some refactoring on the upload service, that handles all files and images uploads to the system. Nothing fancy, but I it got me thinking about the folder ...
celsomtrindade's user avatar
0 votes
1 answer
2k views

Folder and Project Structure in MVVM for WPF Solution

I know there are already questions about file structure in MVVM but I haven't found the pros and cons for the following two structures. What would be better for a large-scale project, and why choose ...
Tiran's user avatar
  • 3
2 votes
3 answers
173 views

Should I ensure my libfoo library's include file can be included as foo/foo.h?

I'm maintaining a small C library; let's call it libfoo. It has quite a few users (actually it's complicated - it's the main fork of a highly popular library which has been abandoned); and it sports a ...
einpoklum's user avatar
  • 2,608
1 vote
2 answers
175 views

Where should I put the .scss files in the scaffold?

I have developed an open-source vue.js scaffold which is based on my exprience and study on various vuejs projects. Currently it has a good structure(i think), but i'm nervous about is it good ...
SeyyedKhandon's user avatar
0 votes
1 answer
79 views

PHP: What code should be removed to its own helper class and where should such classes be located in the filesystem?

The following is an example requesting an explanation for one specific file in one specific filesystem, not helper classes generally. I have configured a LEPP stack on a CentOS server. The server ...
Muckee's user avatar
  • 111
1 vote
0 answers
55 views

How to structure a website with both multiple countries and languages?

So I have an problem regarding logic I cant wrap my head around. I need to expand my application to two different countries which both have their own respective languages (some countries require up to ...
z0mbieKale's user avatar
2 votes
1 answer
493 views

What are the correct storage locations (folders) for an application within a Windows-based (Windows 7 - 10) environment?

I confess, the question title suggest a "too broad" question, but here me out first... I am only interested in verifying my findings in that regard. All the following situations have the following in ...
burnersk's user avatar
  • 215
1 vote
0 answers
36 views

How to lay out a core java module with an Android GUI layer on top

How can I use Java modules in an Android app repository? In particular, what directory structure should I use? I have a project in mind for which I would like to have a GUI-independent core Java 9 ...
Anakhand's user avatar
  • 149
4 votes
2 answers
667 views

Is it a bad idea to model dependencies using a project's directory structure?

Let's say I have three classes: A, B, and C. All of these classes are simple and they create a cohesive unit. In addition, B depends on C and C depends on A. Most people would put these classes into ...
Krzysztof Czelusniak's user avatar
0 votes
1 answer
1k views

Golang: Directory structure for Multiple Applications

I'm creating a proof-of-concept for 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 ...
Ian Taylor's user avatar
-2 votes
1 answer
64 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, ...
Konrad's user avatar
  • 1,559
0 votes
1 answer
67 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 ...
ujwal dhakal's user avatar
20 votes
1 answer
10k 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, /...
DiB's user avatar
  • 507
1 vote
1 answer
5k 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 ...
Seu Madruga's user avatar
0 votes
1 answer
172 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 -...
Claas M.'s user avatar
1 vote
0 answers
119 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 ...
DWoldrich's user avatar
  • 119
2 votes
1 answer
4k 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 ...
dopatraman's user avatar
3 votes
1 answer
227 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 ...
Buzzer's user avatar
  • 33
6 votes
3 answers
475 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: ...
Mathieu Guindon's user avatar
5 votes
2 answers
8k 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 ...
mikl's user avatar
  • 197
3 votes
1 answer
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 ...
Katrina's user avatar
  • 211
0 votes
1 answer
188 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 ...
user1431072's user avatar
2 votes
1 answer
600 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 ...
demonking's user avatar
  • 131
0 votes
1 answer
100 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 ...
bbsimonbb's user avatar
  • 749
0 votes
1 answer
425 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 ...
wegelagerer's user avatar
7 votes
2 answers
3k 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 ...
Hauke's user avatar
  • 181
-1 votes
1 answer
148 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(...
nikoss's user avatar
  • 109
1 vote
1 answer
1k 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 ...
Denis Pshenov's user avatar
3 votes
1 answer
976 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 ...
Peter Turner's user avatar
  • 6,935
1 vote
2 answers
4k 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. ...
nobrandheroes's user avatar
2 votes
1 answer
171 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 ...
korima's user avatar
  • 245
0 votes
1 answer
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: ...
Daniel's user avatar
  • 103
2 votes
1 answer
2k 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 ...
janhartmann's user avatar
1 vote
1 answer
350 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 ...
watain's user avatar
  • 113
1 vote
2 answers
4k 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 ...
csteifel's user avatar
  • 285
3 votes
0 answers
518 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, ...
bitcycle's user avatar
  • 617
0 votes
1 answer
2k 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>/<...
user avatar
9 votes
1 answer
7k 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 ...
jaime's user avatar
  • 193
4 votes
1 answer
5k 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 ...
Sam R.'s user avatar
  • 43
6 votes
4 answers
3k 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/ ...
user1175327's user avatar
10 votes
1 answer
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&...
DeepSpace101's user avatar
  • 1,384
117 votes
4 answers
89k 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 ...
MattiSG's user avatar
  • 1,952
1 vote
1 answer
221 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 ...
Robin Dorstijn's user avatar
9 votes
2 answers
17k 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?...
Steven's user avatar
  • 193
29 votes
3 answers
21k 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, ...
Wayne Molina's user avatar
  • 15.7k
4 votes
2 answers
684 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 ...
Peter Turner's user avatar
  • 6,935
2 votes
3 answers
280 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 ....
maaartinus's user avatar
  • 2,683