mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-30 18:07:38 +00:00 
			
		
		
		
	Apply code review suggestions
This commit is contained in:
		
							parent
							
								
									49c1ec1be9
								
							
						
					
					
						commit
						03b314c4a2
					
				| @ -53,9 +53,11 @@ class RenameRemoteFileOperation( | ||||
|     private var newRemotePath: String | ||||
| 
 | ||||
|     init { | ||||
|         var parent = (File(oldRemotePath)).parent!! | ||||
|         parent = if (parent.endsWith(File.separator)) parent else parent + File.separator | ||||
|         newRemotePath = parent + newName | ||||
|         var parent = (File(oldRemotePath)).parent ?: throw IllegalArgumentException() | ||||
|         if (!parent.endsWith(File.separator)) { | ||||
|             parent = parent.plus(File.separator) | ||||
|         } | ||||
|         newRemotePath = parent.plus(newName) | ||||
|         if (isFolder) { | ||||
|             newRemotePath.plus(File.separator) | ||||
|         } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user