Lets say that I have the following structure:
./
├── Dir1
├── Dir2
│ ├── SubDir1
│ │ └── SubSubDir1
│ └── SubDir2
└── Dir3
└── SubDir1
Use this to make the test structure:
mkdir -p Dir1 Dir2/SubDir1/SubSubDir1 Dir2/SubDir2 Dir3/SubDir1
I would like to create a Texture
folder in every directory to include the current location so it would look like this (All new Texture
directories are marked with *
):
./
├── Dir1
│ └── Textures*
├── Dir2
│ ├── SubDir1
│ │ ├── SubSubDir1
│ │ │ └── Textures*
│ │ └── Textures*
│ ├── SubDir2
│ │ └── Textures*
│ └── Textures*
├── Dir3
│ ├── SubDir1
│ │ └── Textures*
│ └── Textures*
└── Textures*
Then I would also be able to delete these same folders after I work with them. You can assume that there are no other directories named Textures
that need to be saved.
So I would like to create a Textures
directory in the current directory and all of its subdirectories. And I would like to be able to delete every directory named Textures
when I am done moving files around.