2,659 questions
0
votes
0
answers
44
views
GitHub Pages returns 404 for subfolder project URL inside a multi-project repository
I have a GitHub repository called Dev_Challenges where I store multiple frontend projects, each inside its own folder.
Repo:
https://github.com/Prachii1111/Dev_Challenges
My folder structure looks ...
0
votes
1
answer
113
views
Error when importing agents module from parent directory
I am trying to get started in Python and working on a simple program that uses the AIMA library. I have imported the AIMA library and all files are contained in a parent directory. I have created a ...
0
votes
1
answer
51
views
Redirect user to subdirectory in nginx based on cookie set earlier through wordpress
I have two wordpress sites installed under two sub-directories of the same domain. Each site is in a different language. English version example.com/en and Spanish example.com/es
These are served by ...
2
votes
0
answers
69
views
File does not have a stream with WriteToDirectory with .7zip
at my job we use this method for an automated job that is trigger when .7zip files are put inside a specific folder:
public void Executer(ref string pChaineContexte, XdCuContexteTravail pContexte)
...
0
votes
1
answer
84
views
Get batch program to process files in subdirectories
I have this simple batch file I'd like to process files in subdirectories. I've played around with the for /R but I can't seem to get it to work. Any help would be very appreciated.
Thank you.
Here is ...
0
votes
1
answer
65
views
Find matching named folders (different paths) and move a specified file from one to the other in Windows
I have worked all week to get my data to this point and am stuck with the final move. I have a folder called "Batch" and within it are numerous subfolders with different names. I have ...
0
votes
0
answers
23
views
Subdirectory deployment with GitHub pages
My structure is as follows:
FE (React) being hosted with GH Pages
BE (Asp.Net) running on a linux container + Nginx on AWS' ec2
Domain services with Hostinger
Both FE and BE are currently running ...
3
votes
2
answers
82
views
Zip exclude all subfolder except one subfolder and its files
I have problem when zipping a folder, lets say I have folder Project with node_modules to be excluded, but I want to include only node_modules/mydir in my zip.
I tried with zip -r project.zip Project/ ...
0
votes
1
answer
50
views
Can't login on WP website via example.com/wp-admin. Only example.com/wp-login.php works
When trying to visit example.com/wp-admin it changes the url to https://example.com/wp-login.php?redirect_to=https%3A%2F%2Fexample.com%2Fblog%2Fwp-admin%2F&reauth=1 When logging in with the wrong ...
0
votes
1
answer
52
views
python importlib from subdirectory, module not found
I'v been struggling with importing a sub module. In main.py two modules are imported located under 220_04_070. I'm using importlib since the directory name only consist of numbers. common.py just ...
0
votes
1
answer
100
views
How to use CodeIgniter 4.6 in subfolder?
I am trying to create a new site under xampp (php 8.2) with CodeIgniter 4.6(the latest). Here are what I did:
run cmd: composer create-project codeigniter4/appstarter c46 under folder htdocs
update ...
-1
votes
1
answer
104
views
Windows batch file to recursively use Imagemagick command to process .jpg images in a folder and subfolders?
I'm successfully using this batch file in each subdirectory to process hundreds of .jpg images:
@echo off
for %%A in (*.jpg) do (
"C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\magick" ...
1
vote
0
answers
21
views
Powershell Folder Path Error using Move-Item [duplicate]
I have a basic script that is designed to create a folder and subfolder based on the file name with '_' as the delimeter. Folders are created, but I get a "Could not find part of the path" ...
-1
votes
1
answer
31
views
Htaccess for 2 php scripts running on the same site
How do I allow a /subfolder containing a forum php script to be accessible from the /public_html where the htaccess is located? There is also an htaccess in the forum subfolder too.
When I go to /...
0
votes
1
answer
162
views
Why is the project file name (only) sometimes prepended to the MSBuild intermediate directory?
In my builds, I need to ensure a specific intermediate directory. Now, I have noticed that building a .vcxproj file uses a different intermediate directory than building the same project as part of an ...
0
votes
2
answers
109
views
Setting up redirect in header.php (subdirectory to an external website)
I'd like to know how to do this using header.php (WordPress) or any other method. Basically, I want to set up a redirect from a subdirectory page (e.g. "/my-ebook/") to an external website (...
2
votes
2
answers
146
views
How can I specify the directory I want to get using the os library?
I have a directory called "Data" and inside it I have 35 other directories with another bunch of directories each. I need to check if these last directories have .txt files and, if so, I ...
0
votes
0
answers
48
views
I am having trouble creating a sub folder using dependency injection for User workorder's when the user submits the order in laravel 11
I am new to laravel and having trouble figuring out the path and creating a sub folder for workorders when the user submits the order in laravel 11.
I have a create user folder on registration in ...
-2
votes
1
answer
228
views
What is the fastest way to get the number of files contained in a directory, including its subdirectories in Windows using .NET? [closed]
I have a directory that contains subdirectories, and each of those contains a good number of files. Each such directory contains at least 100k total files within its subdirectories, with each ...
1
vote
1
answer
44
views
.htaccess rule to implement root and subfolder in same way
We have a directory in which there is a index.php file, for which we have defined rule via .htaccess which is working fine, now we need to create a sub-directory that will also have index.php file.
...
0
votes
1
answer
30
views
Import module from subfolder - invalid syntax
Here is my Python project folder structure.
project\
main_code.py
code\
__init__.py
s_utils.py
data\
in main_code.py I tried:
import os
os.chdir('absolute path to ...
-1
votes
1
answer
70
views
VScode fails to make subolder
I am working in a beginner MERN stack project
I am using VS code.
when I make folder(M) and then a sub-folder(a) it's okay
then I try to subfolder inside folder(M) as sub-folder(b)
but it's make like ...
0
votes
1
answer
469
views
Is there any way of using node modules packages subfolders?
I am using @mediapipe/tasks-vision npm package in the webapp, I want to use my own wasm folder that's present in 'node_modules/@mediapipe/tasks-vision/wasm'.
I am using next.js as the front end.
Any ...
0
votes
1
answer
91
views
How to spilt a Python class in multiple files in different subdirectories?
I can split a class definition in multiple files only if these are located in the same directory:
# entrypoint.py
class C(object):
from ImplFile import OtherMethod
def __init__(self):
...
1
vote
1
answer
130
views
How can I make sure my exe file recognise my dll file which is in a folder called binary adjacent to my exe file
The log output generated by the compiler
'FpsKing.exe' (Win32): Loaded 'C:\Users\user\source\repos\FirstPersonShooter\x64\Debug\FpsKing.exe'. Symbols loaded.
'FpsKing.exe' (Win32): Loaded 'C:\Windows\...
0
votes
1
answer
64
views
Get-childitem: Can not get the subfolders from another subfolders to out-gridview: Error Cannot find path because it does not exist
What is the goal of this script?
Need to delete big SQL dump files remotely.
When script is launched, we need to click on ok while parent folder is selected/highlighted.
After then we need click on ...
0
votes
1
answer
28
views
Moving a project from one folder to a subfolder
I've built a react app in VsCode and after a while wanted to put it in a subfolder of the folder it's currently in, but after I've put it inside the subfolder everytime I've tried to run it I get an ...
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
469
views
Suppressing warnings for all files in a specific folder in Visual Studio
How to suppress a single warning e.g. CS1591 for all files in a single folder?
e.g I only wont suppress all warnings in folder Areas not in the full project.
I have tried:
<ItemGroup>
<...
0
votes
1
answer
42
views
How to remove (1) from macOS subfolders?
Because of a botched attempt at folder all of my apps and documents to new iMac via Google Drive I've ended up with a slew of folders, subfolders, and files showing the iteration of copying I've ...
0
votes
0
answers
47
views
Isolate repository subdirectory into a separate branch
How do I break a subdirectory from main and push it onto a new branch (preferrably without disturbing the history of main in the process)? I don't really care about the sub history.
Currently I have ...
-1
votes
1
answer
62
views
How to print name of third subdirectory of /home directory?
How to print name of (for example) third subdirectory of /home directory in Bash?
I have this from Chat GPT, but I am not sure about that.
ls -d /home/*/ | sed -n '3p' | xargs basename
0
votes
0
answers
54
views
C++: CMake / Visual Studio failing to link external libraries when called from header, but works when called from .cpp
I'm trying to write a library that works as an interface between E57Format and the rest of our projects and include that as a subdirectory in my main CMake. When I call functions of the E57Format from ...
0
votes
0
answers
33
views
GCC embed binary into a qtabwidget
If there is a similar post out there I have not found it. pleases reply with a link if there is one.
project description:
We have created a modular approach with our projects. for example ...
0
votes
1
answer
57
views
Needing to move and rename multiple files 1 at a time was wondering if bat can do this
So I'm currently working on the old "Movies" setup on my hard drive based on a 5 year old video from youtube I watch about 2 years ago and since I'm just getting start again with kodi I need ...
1
vote
1
answer
98
views
Delete subfolders that start with a specific character AND are more than # days old - powershell
We have a very manual process here where when servers start filling up disk space, we go the user profiles in C:\Users and delete folders that are over 24 hours old that begin with "Z" as ...
0
votes
0
answers
57
views
How can a script in R call other scripts without problems with the working directories?
I have a script called Main/Main.R.In a sub folder I have Main/SubFolder/Part1.R, that reads some excels from other folder called Main/Input/Excel.xlsx.
I face the problem when I run in Main.R the ...
0
votes
1
answer
42
views
ps1-script only works if the folders in the path where the first argument is located do not contain any spaces
// # Output the path of the first argument
Write-Host "Path of the first argument: $($args[0])"
# Check if a file path is provided
if ($args.Count -eq 0 -or $args[0] -eq $null) {
Write-...
1
vote
2
answers
414
views
How to upload folders to react with special characters in the name
I have a problem with my javascript uploading:
I am using this code:
const handleParameterSearchUpload = async (event) => {
const files = event.target.files;
console.log(files);
const ...
-1
votes
1
answer
67
views
How to upload files to subfolders for sharepoint but have no right to the home page with CSOM for c#
I upload a excel file to the subfolder of the sharepoint, my account can access the subfolder:
https://inteltechcorp.sharepoint.com/sites/inteltechShared/Shared%20Documents/Forms/AllItems.aspx?...
-1
votes
1
answer
249
views
Dockerfile and package-json are in different folders
i am trying to build my react app, however, for the purpose of the project, the Dockerfile must be in the compose/cloud/ folder (it cannot be in the root), here is my folder structure
my-frontend-app/
...
0
votes
1
answer
233
views
Github actions to deploy subdirectory flask project to Azure Web App
I have this folder structure:
It is a react web app, with backend folders included like flask and nodejs.
Due to requirements I'm required to combine my backend towards my frontend code.
Hence I've ...
-3
votes
1
answer
135
views
how to rename multiple files from different subfolders in R, while keeping them in their original folder [closed]
'''
fieldszn <- '~/Desktop/hls project/fieldszn'
bands <- list.files(fieldszn, pattern = "*.tiff", recursive = TRUE, full.names = FALSE)
new_names <- c("red", "...
0
votes
1
answer
104
views
ModuleNotFoundError: No module named 'src' , trying to import from a sub package
I have this folder structure in my project :
easylaw-api/
│
├── src/
│ ├── api/
│ │ ├── main.py
│ │ ├── __init__.py
│ │ ├── models/
│ │ │ ├── codes.py
│ │ │ └── __init__.py
│ ...
2
votes
1
answer
357
views
Switch r settings to not have to create directory when saving files into new subfolders
I have code to create new files saving graphics into new subfolders like the following:
library(tidyverse)
library(ggplot2)
carb_list = unique(mtcars$carb)
iterate = function(z){
df = mtcars |...
0
votes
1
answer
76
views
How to run this code in all subdirectories? [duplicate]
Found this code (https://github.com/Topslakr/x32Live-CleanUp/blob/master/Delete_Silent) and it works great in Cygwin for what I need, but, I'd like to have it also run in all subdirectories. Been ...
0
votes
1
answer
102
views
How do I push a file into its subfolder in git repository?
I'm quite new to git and I'm facing a (surely) trivial problem.
I have cloned a repository and currently working in one of the subfolders (subdirectories).
The structure is something similar to
Main ...
-4
votes
5
answers
7k
views
In python how do you get the "last" directory in a path string? [closed]
I am working on a remote file system, where I don't have direct access to the files/directories, so I cannot check if a string represents a file or a directory.
I have the following paths I need to ...
1
vote
2
answers
60
views
css file being read regardless of changing url (css NOT cached)
Testing in Incognito / Chrome (to force non caching of files I wish to change / develop), the following keeps happening so I was hoping someone could please tell me why:
A php file is referencing and ...
1
vote
1
answer
44
views
Correctly create the path without taking the whole path name but only from the current one in Powershell
I have this script that does not apply correctly to the subfolders. It should create the files all inside the folder "Txt_ENG" respecting the subfolders.
Example:
I am in:
G:\Games\Files ...