Answer the question
In order to leave comments, you need to log in
How to delete everything in a folder except for a specific folder?
Hello, I need to delete all files and folders in a folder except for a specific folder , which also has files.
For example, there is a main folder general:
general{
file-1
file-2
dir-1{
file-1-1
file-1-2
}
dir-2{
file-2-1
file-2-2
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question