|
|||
|
All, in my script I create a directory
'file mkdir $a_arg/tmp/matching_files_found' towards the end of the code I want to delete/flush this directory. clearly I found the mkdir command. But cant see a rmdir style one. Have tried, file delete ?-force? $a_arg/matching_files_found with mixed results - seemed to work for a while then the directory didnt delete after a while, could be me tho I guess. Takers>? |
|
|
||||
|
||||
|
|
|
|||
|
On Feb 10, 7:59*am, bigbloke <s.mcc...@ntlworld.com> wrote:
> > file delete ?-force? $a_arg/matching_files_found > > with mixed results - seemed to work for a while then the directory > didnt delete after a while, could be me tho I guess. > I use file delete -force to accomplish this task. The docs say: "Non- empty directories will be removed only if the -force option is specified". I have not had an issue. Now, it will NOT remove the directory if it's in use and that can be as simple as being in the directory in a shell or have an open file somewhere under the directory. Are you sure that's not what was going on when you experienced your error? Jeremy |
|
|||
|
On Feb 10, 4:59*am, bigbloke <s.mcc...@ntlworld.com> wrote:
> file delete ?-force? $a_arg/matching_files_found Did you try it like that, with the question marks??? They just indicate that -force is an optional parameter, which you do want to use. |
|
|
![]() |
| Popular Tags in the Forum |
| command, delete, directory, noob |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FAQ 5.41 How do I delete a directory tree? | PerlFAQ Server | Newsgroup comp.lang.perl.misc | 3 | 12-30-2009 12:54 PM |
| insert to projection | paul c | Newsgroup comp.databases.theory | 29 | 09-08-2009 12:39 PM |
| "PAK WEB PAGES" "PAK WEB SITES" "PAK WEB LINKS" "PAK TV LIVE" "PAKWEB" "PAK WEB DIRECTORY" "PAK WEB PAGES" ON www.pak-web-pages.blogspot.com | nadia | Newsgroup comp.lang.python | 0 | 08-26-2009 12:20 PM |
| FAQ 5.41 How do I delete a directory tree? | PerlFAQ Server | Newsgroup comp.lang.perl.misc | 2 | 07-18-2009 06:33 AM |
| FAQ 5.41 How do I delete a directory tree? | PerlFAQ Server | Newsgroup comp.lang.perl.misc | 0 | 04-30-2009 01:03 PM |