mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 10:27:45 +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 |     private var newRemotePath: String | ||||||
| 
 | 
 | ||||||
|     init { |     init { | ||||||
|         var parent = (File(oldRemotePath)).parent!! |         var parent = (File(oldRemotePath)).parent ?: throw IllegalArgumentException() | ||||||
|         parent = if (parent.endsWith(File.separator)) parent else parent + File.separator |         if (!parent.endsWith(File.separator)) { | ||||||
|         newRemotePath = parent + newName |             parent = parent.plus(File.separator) | ||||||
|  |         } | ||||||
|  |         newRemotePath = parent.plus(newName) | ||||||
|         if (isFolder) { |         if (isFolder) { | ||||||
|             newRemotePath.plus(File.separator) |             newRemotePath.plus(File.separator) | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user