2,658 questions
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 ...
2
votes
0
answers
60
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
56
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 ...
3
votes
2
answers
81
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
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 ...
-1
votes
1
answer
99
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
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
2
answers
108
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 (...
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 ...
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.
...
-1
votes
1
answer
64
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
90
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):
...
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 ...
1
vote
1
answer
209
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 ...
0
votes
1
answer
35
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 ...
-1
votes
1
answer
60
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
32
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 ...
1
vote
1
answer
97
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
1
answer
34
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
votes
1
answer
61
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?...
0
votes
1
answer
220
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 ...
0
votes
1
answer
102
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
│ ...
0
votes
1
answer
73
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 ...
-3
votes
5
answers
6k
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
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 ...