Delete Folder your are in
Posted: 19 Jun 2011 00:12
Here is what the script should do. You are inside a folder and run the script and it should delete the current folder and all inside it and go to the parent folder.
A
|----B <---you are here
|----C
After Delete
A <---you are here
|----C
I have written this:
delete 1, 1, <curpath> ;
It works and after confirmation, it deletes the folder you are inside.
My problem is at the end. At the end, the pane doesn't go to the parent. It goes sometimes to a sibling folder! Another child folder of the parent. Why is this? In Dopus when I delete the current folder, it goes automatically one up to the parent. How to achieve that here?
The problem is
After Delete
A
|----C <--- I am here!!!!!!!!!!!!!!
(I don't want to go up before deletion, because when the delete confirmation box shows I want to be able to see the files inside folder B.
A
|----B <---you are here
|----C
After Delete
A <---you are here
|----C
I have written this:
delete 1, 1, <curpath> ;
It works and after confirmation, it deletes the folder you are inside.
My problem is at the end. At the end, the pane doesn't go to the parent. It goes sometimes to a sibling folder! Another child folder of the parent. Why is this? In Dopus when I delete the current folder, it goes automatically one up to the parent. How to achieve that here?
The problem is
After Delete
A
|----C <--- I am here!!!!!!!!!!!!!!
(I don't want to go up before deletion, because when the delete confirmation box shows I want to be able to see the files inside folder B.