mirror of
				https://github.com/minio/minio.git
				synced 2025-10-29 15:55:00 -04:00 
			
		
		
		
	fs: Return errVolumeNotEmpty properly if path not empty. (#4794)
Refer #4770
This commit is contained in:
		
							parent
							
								
									d20cdac304
								
							
						
					
					
						commit
						b69aa9c4d0
					
				| @ -61,6 +61,8 @@ func fsRemoveAll(dirPath string) (err error) { | ||||
| 	if err = removeAll(dirPath); err != nil { | ||||
| 		if os.IsPermission(err) { | ||||
| 			return traceError(errVolumeAccessDenied) | ||||
| 		} else if isSysErrNotEmpty(err) { | ||||
| 			return traceError(errVolumeNotEmpty) | ||||
| 		} | ||||
| 		return traceError(err) | ||||
| 	} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user