mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:12:43 +00:00 
			
		
		
		
	rmdir: Add -p option to remove all directories in each given path
				
					
				
			This commit is contained in:
		
							parent
							
								
									063efe9cf8
								
							
						
					
					
						commit
						307dc00ee0
					
				
					 2 changed files with 36 additions and 7 deletions
				
			
		|  | @ -12,6 +12,10 @@ $ rmdir `[directory...]` | |||
| 
 | ||||
| Remove given `directory(ies)`, if they are empty | ||||
| 
 | ||||
| ## Options | ||||
| 
 | ||||
| * `-p`, `--parents`:  Remove all directories in each given path | ||||
| 
 | ||||
| ## Arguments | ||||
| 
 | ||||
| * `directory`: directory(ies) to remove | ||||
|  | @ -31,4 +35,7 @@ $ ls -a example | |||
| $ rmdir example | ||||
| $ ls -a example | ||||
| example: No such file or directory | ||||
| 
 | ||||
| # Removes foo/bar/baz/, foo/bar/ and foo/ | ||||
| $ rmdir -p foo/bar/baz/ | ||||
| ``` | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Ledbetter
						Tim Ledbetter