deletePath(): Succeed if path doesn't exist
Also makes it robust against concurrent deletions.
This commit is contained in:
		
							parent
							
								
									28e7e29abd
								
							
						
					
					
						commit
						152b1d6bf9
					
				
					 5 changed files with 23 additions and 23 deletions
				
			
		|  | @ -92,8 +92,8 @@ string readLine(int fd); | |||
| void writeLine(int fd, string s); | ||||
| 
 | ||||
| /* Delete a path; i.e., in the case of a directory, it is deleted
 | ||||
|    recursively.  Don't use this at home, kids.  The second variant | ||||
|    returns the number of bytes and blocks freed. */ | ||||
|    recursively. It's not an error if the path does not exist. The | ||||
|    second variant returns the number of bytes and blocks freed. */ | ||||
| void deletePath(const Path & path); | ||||
| 
 | ||||
| void deletePath(const Path & path, unsigned long long & bytesFreed); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue