1,689 questions
0
votes
1
answer
57
views
AWS CDK not updating ECR with ecrAssets.DockerImageAsset()
I use CDK to generate a CloudFormation stack.
When I run cdk synth and cdk deploy, the ECR image and the Task definition don't get updated. In order to force the update, I have to:
delete the built ...
0
votes
0
answers
47
views
Directory / API structure moving to flask-smorest from flask-restx
Well, I found that flask-restx may no longer be maintained (last commit was 10 months ago as of this post). That's too bad seeing as I spent a decent amount of time learning it and overall thought it ...
0
votes
1
answer
480
views
FastAPI application: page stuck loading
I'm trying to create a basic FastAPI application. Initially, my project directory looked like this:
.venv/
main.py
where .venv/ is my virtual environment with FastAPI installed, while main.py has the ...
0
votes
2
answers
193
views
Unable to create new folder inside src/main/java in IntelliJ IDEA when folder is marked as Sources Root
I’m working on a Java Spring Boot project in IntelliJ IDEA. My folder structure is like this:
src/main/java/com/discordbot/sentry
The problem is:
The src/main/java folder is marked as Sources Root (...
1
vote
0
answers
24
views
Fluent UI GroupedList not showing both files and folders in same-level folder
I'm using Fluent UI's GroupedList component in a React app to build a file/folder browser UI. The structure I'm rendering is hierarchical, where each group represents a folder, and it can contain both ...
0
votes
1
answer
29
views
Python ModuleNotFoundError when importing sibling package inside src/ layout
I use VS code with PyLint for my python coding. My main coding language is Matlab but want to transition to Python for doing my scientific computing. This is my first attempt.
I have the following ...
0
votes
0
answers
33
views
managing different folder structures between development and deployment in a WordPress plugin
I have developed a WordPress plugin that is now live on the WordPress Plugin Directory. However, I'm facing an issue with managing different folder structures between my development environment and ...
0
votes
1
answer
468
views
Working directory structure for a Django-Python project used as an API backend only
I'm a newbie in Django Python and I need to create an API backend for a frontend done in React. I'm forced by the customer to use Django Python, no options on this!
The project is very simple: it ...
0
votes
0
answers
71
views
Relative paths for KMZ thumbnails
I am having an issue with getting some thumbnail jpeg images to pop-up when I click on point locations I have in a kml. I know that I need to set the image location and when I use the full file path ...
2
votes
2
answers
181
views
is this the right way to use Includes in C?
I was trying to organize my previously done C project (Uni project), I used Header files at then, but now i wanted to make it more clean, so went on dividing it into directories. But...
Help me..
...
1
vote
1
answer
101
views
HTML Bundler Webpack Plugin - Keep Assets Directory Structure Problem
I am using HTML Bundler Webpack Plugin and following the documentation to keep the directory structure for assets: https://github.com/webdiscus/html-bundler-webpack-plugin?tab=readme-ov-file#how-to-...
0
votes
1
answer
41
views
Using another's python code as a folder inside my folder and using files from both
I have the following code structure in python:
Application
├── app
│ ├── data/
│ ├── utils/
│ │ └── utils.py
│ └── main.py
├── utils2/
│ └── utils2.py
└── main2.py
I downloaded ...
4
votes
1
answer
323
views
Why should/shoudn't I use lib.rs in binary crates? [closed]
When I search the internet for design examples how to structure my code, I frequently find setups with main.rs only containing the main function and usages of lib, while lib.rs contains all the actual ...
0
votes
1
answer
88
views
How do I best layout a kivy project so it can be built for multiple platforms?
I'm trying to figure out a project layout for a kivy app that will allow it to be built as:
a python module (so it can be distributed via pypi and thus 'pipx install')
an android app
a windows app (...
1
vote
1
answer
63
views
problems with img tag in angular
I'm trying to loud a jpg logo in angular app, using <img> tag in the HTML of header component. If i click on my path in VS CODE it gets to my image but on the browser I get error 404.
this is ...
0
votes
1
answer
56
views
How do I decrease the length of imports for my custom package?
I have a package called "library". The directory structure looks like this:
-library
+src
*pkg1.py
*pkg2.py
-pyproject.toml
-__init__.py
Currently, the import looks ...
-2
votes
1
answer
142
views
Is there a reason javascript works in one folder and does not in another folder on the same webserver?
Good day stackers,
Can anyone help me figure out why a simple javascript onchange function works in one folder but does not work in another folder on the same webserver (cPanel v120.0.16).
The links ...
0
votes
1
answer
118
views
Compare 2 directories based on their folder structure in batch
I am working on a batch script that takes user input of a source folder and a destination folder. I want my script to iterate through both folder structures and log which folders are not present in ...
1
vote
1
answer
105
views
Git issue when renaming directory
I know the answer to this question has been answered in dozen of SO questions but I'm still getting an issue.
I've followed the steps from this: In a Git repository, how to properly rename a directory?...
0
votes
1
answer
148
views
Windows Powershell / robocopy: copy directory structure and full folder content - but only if folder contains PDF
I try to write a script that does the following:
determine folders that contain PDF files from a source dir
create the full original directory structure down to these folders to a destination dir
...
0
votes
1
answer
39
views
Installing my cli tool globally doesn't include other folders
I am building a cli tool and it has a folder named template which contains all the js templates required to create certain files. I install my tool globally with npm install -g.
I created a separate ...
1
vote
1
answer
137
views
Why does my Python package install files directly into site-packages instead of under my package directory?
I'm working on a Python package with the following structure:
cfkit/
│
├── README.md
├── setup.py
├── .gitignore
├── LICENSE.txt
├── src/
│ ├── problem.py
│ ├── contest.py
│ ├── __init__.py
│ ├...
-3
votes
2
answers
198
views
Terraform directory Structure for common infrastructure on aws for ADO pipeline
I have started working with terraform recently, I just want to understand the directory structure for design where we have common/different components as below and need to be integrated with ADO. I ...
0
votes
1
answer
333
views
Folder structure conflict of Expo react native app with FSD v.2
I want to use FSD v2 with Expo application. As Expo application uses file based routing like a next.js, there is some conflicts. However, I found that there is possibilities to solve according to ...
0
votes
1
answer
48
views
Remote Directories with sizes
I want to import a csv list of file servers and shares ...
"\fileserver1\share"
"\fileserver2\share"
"\fileserver3\share"
Then export only the top-level directory path (...
1
vote
1
answer
222
views
Difference between a page component and smartcomponent Angular
I just finished reading an article about the recommended folder structure in an Angular project. The part about the feature modules caught my attention because it recommended to include a "top ...
1
vote
1
answer
622
views
not-found.tsx page in the context of multiple root layout.jsx in Next JS
I hope someone might be able to help.
I have this page structure in my NextJS 14 app:
app/
(admin)/
layout.tsx
(web)/
layout.tsx
page.tsx
not-found.tsx
Note that ...
0
votes
0
answers
28
views
Django: How to undo ModuleNotFoundErrors due to multiple site-packages locations
When I run my Django project, why does it check for site packages in a folder other than where my project is located? The correct location where the project and package files are located is:
C:\Users\...
1
vote
1
answer
399
views
Webpack circular dependency while importing from index files
I have the current folder structure
├── files/
│ └── utils.ts
│ └── index.ts
├── api/
│ ├── api.ts
│ ├── utils.ts
│ └── index.ts
Content:
// files/utils.ts
import api from 'api' // ...
0
votes
1
answer
886
views
How to change the default extension install folder of Visual Studio 2022?
The default folder that the Visual Studio installs the extensions is the following: %LocalAppData%\Microsoft\VisualStudio<Visual Studio version>\Extensions. So I want to change the folder to a ...
0
votes
0
answers
76
views
Python importing the files partially from the same script [duplicate]
I have a folder structure as follows:
lib
|
|
|-MainScriptsDir
| |
| |-subDir
| |
| |- Mod_1 -> Importing Numpy
| |- Mod_2 -> Importing Mod_4
| |- Mod_3 -&...
0
votes
0
answers
26
views
Rewrite url with dynamic subfolders to php handler
I'm trying to clean up my site a little bit and I am running into a bit of an issue with .htaccess rewrites with dynamic/unknown subfolders.
What i'm trying to achieve is the following
Accessing
/...
1
vote
1
answer
45
views
Python app structure when using vs code and venv
I am working on a python app using VS Code. I work with the following structure:
my_app
├── venv
├── my_app
│ ├── __init__.py
│ ├── main.py
│ ├── module_1
│ │ ├── __init__.py
│ │ ├── ...
0
votes
1
answer
69
views
What is the recommended way to store application-wide values like the path of its AppData folder?
I'm working on a C# application and need to store application-wide values in a MVVM project, such as the path to its AppData folder. What is the recommended approach to achieve this? I'm very new to C#...
0
votes
1
answer
46
views
Script to create folders and subfolders and their subfolders shows an error
I'm attempting to create a 5 level folder having an Excel sheet as the source.
NOTE: Excel sheet is column organized by levels on each column as shown.
Reference VB script from:
https://superuser.com/...
-1
votes
1
answer
264
views
example of how to separate sample project into separate files?
When you create a new project in Flutter v3.19, it creates a default app in /lib/main.dart
/lib/main.dart contains three classes:
class MyApp extends StatelessWidget
class MyHomePage extends ...
0
votes
1
answer
228
views
How to get parent directory of classpath inside @PropertySource()
I have some variables that need to be inputted for my app and I wanted to move that file from the resources folder to the base directory to make it more user friendly. However, I am having trouble ...
1
vote
1
answer
615
views
How To share/manage Typescript Types between Frontend and Backend In Big Projects
I have a MERN project with the following folder structure.
backend is an express,mongo backend. With the following structure.
frontend is folder of 3 vite react projects. each has the following folder ...
2
votes
2
answers
2k
views
How To share Typescript Types between Frontend and Backend In Big Projects
I have a MERN project with the following folder structure.
backend is an express,mongo backend. With the following structure.
frontend is folder of 3 vite react projects. each has the following folder ...
0
votes
1
answer
61
views
Problem in creating folder and file after upload in Django
I'm creating a source code evaluater platform using React and Django. Basically an user is going to upload a source file of his choice, my frontend sends the file to backend, which is working fine, ...
0
votes
1
answer
43
views
R - how to get a multi-level list using list.files
I have a folder structure like this:
- ConditionA
- Subcondition1
- data1.Rds
- data2.Rds
- Subcondition2
- data1.Rds
- data2.Rds
- ConditionB
- ...
1
vote
1
answer
96
views
Ruby Script Recursively Creates Deeply Nested Directories
I'm working on a Ruby script, specifically with a method named copy2tmp, (copy pasted method definition)
define_singleton_method(:copy2tmp) do |files|
files.each do |f|
if File.symlink?(f)
...
-1
votes
3
answers
2k
views
Batch Script to Create Multiple Folders within Multiple Folders
I'm trying try create a folder structure of multiple folders within another folder.
The below script creates the same subfolders but not what I need.
@ECHO ON
SET RootDir=C:\Main
SET SubA=A,B
SET SubB=...
0
votes
1
answer
733
views
aws s3 cp - Copy only specific subfolder tree using awscli
I would like to copy only certain subfolder tree from S3 to my local disk. We have multiple JDBC source connectors for each table in the database and an S3 sink connector. I want to copy the file ...
1
vote
1
answer
75
views
How to sort and copy numbered files into incremented folders
So I have gene files named 1, 2, ... 19500.fa and want to sort them into folders 200, 400, 600... 19600 for a downstream pipeline. I have an idea of how to do this but it's pretty gruesome:
for file ...
0
votes
0
answers
248
views
Correct date/time metadata for files on sharepoint based on file information from Word/Excel
Maybe someone has a good idea for the following problem.
In our company, we just went through a take-over of our Microsoft 365 domain. During that process, all data from the old sharepoint was ...
2
votes
0
answers
64
views
What is the optimum way when designing Git Repos and folder structures for big projects?
I have an embedded systems project which needs to be developed and adapted easily for other microcontrollers. There are 3 types of files:
Type-1: Hardware related files which will be independent of ...
1
vote
1
answer
683
views
nextjs correct folder structure and dynamic routing
So i have this Link which passing a href
{
name: "Action",
cell: (row) => (
<div className="flex items-center space-x-5">
<Link href={`/...
0
votes
0
answers
46
views
Python: Module from Project Folder Not Found in Package Folder
I have the following project structure:
└── myProject
├── folder1 (package)
├── __init__.py
│ ├── file1.py
│ ├── file2.py
│ ├── file3.py
├── file6.py
├── file7.py
My friend added this ...
0
votes
1
answer
84
views
Project file structure [closed]
I am currently working on a Pygame project and would like to seek your advice on best practices for organizing my code, particularly when it comes to creating additional scripts. I find myself ...