Merge pull request #1 from mightydok/isdir
Fix for path extraction or webdav client cant find path to sync
This commit is contained in:
		
						commit
						0a93115956
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -966,7 +966,9 @@ class WebDavXmlUtils:
 | 
			
		|||
                urn = unquote(href)
 | 
			
		||||
 | 
			
		||||
                if path[-1] == Urn.separate:
 | 
			
		||||
                    if not path == urn:
 | 
			
		||||
                    # remove / from path to compare with urn
 | 
			
		||||
                    # e.g. /path = /path
 | 
			
		||||
                    if not path[:-1] == urn:
 | 
			
		||||
                        continue
 | 
			
		||||
                else:
 | 
			
		||||
                    path_with_sep = "{path}{sep}".format(path=path, sep=Urn.separate)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue