mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Keep completing the propfind
This commit is contained in:
		
							parent
							
								
									a4678557d8
								
							
						
					
					
						commit
						7cb9189fce
					
				| @ -1 +1 @@ | |||||||
| Subproject commit 9b39bb9d05bf27510ceeee105fb6edc2068fe8e2 | Subproject commit 9bc069f4ed25590ba457c2f35067eb63604a0e9a | ||||||
| @ -13,7 +13,7 @@ import okhttp3.Request; | |||||||
| 
 | 
 | ||||||
| public abstract class RemoteOperation { | public abstract class RemoteOperation { | ||||||
|     private final OCContext mContext; |     private final OCContext mContext; | ||||||
|     private static final String WEBDAV_PATH_4_0 = "remote.php/dav"; |     private static final String WEBDAV_PATH_4_0 = "remote.php/dav/files"; | ||||||
|     private static OkHttpClient mClient = null; |     private static OkHttpClient mClient = null; | ||||||
| 
 | 
 | ||||||
|     protected RemoteOperation(OCContext context) { |     protected RemoteOperation(OCContext context) { | ||||||
| @ -50,6 +50,7 @@ public abstract class RemoteOperation { | |||||||
|         return UrlUtils.INSTANCE.omitTrailingSlash(HttpUrl.parse( |         return UrlUtils.INSTANCE.omitTrailingSlash(HttpUrl.parse( | ||||||
|                 getBaseUriBuilder() |                 getBaseUriBuilder() | ||||||
|                         .appendEncodedPath(WEBDAV_PATH_4_0) |                         .appendEncodedPath(WEBDAV_PATH_4_0) | ||||||
|  |                         .appendEncodedPath(mContext.getOCAccount().getDisplayName()) | ||||||
|                         .appendEncodedPath(resourcePath) |                         .appendEncodedPath(resourcePath) | ||||||
|                         .build() |                         .build() | ||||||
|                         .toString())); |                         .toString())); | ||||||
|  | |||||||
| @ -5,7 +5,7 @@ import com.owncloud.android.lib.refactor.RemoteOperation; | |||||||
| import com.owncloud.android.lib.refactor.RemoteOperationResult; | import com.owncloud.android.lib.refactor.RemoteOperationResult; | ||||||
| 
 | 
 | ||||||
| import at.bitfire.dav4android.DavResource; | import at.bitfire.dav4android.DavResource; | ||||||
| import at.bitfire.dav4android.property.DisplayName; | import at.bitfire.dav4android.PropertyUtils; | ||||||
| 
 | 
 | ||||||
| public class PropfindOperation extends RemoteOperation { | public class PropfindOperation extends RemoteOperation { | ||||||
| 
 | 
 | ||||||
| @ -21,9 +21,8 @@ public class PropfindOperation extends RemoteOperation { | |||||||
|     public RemoteOperationResult exec() { |     public RemoteOperationResult exec() { | ||||||
| 
 | 
 | ||||||
|         try { |         try { | ||||||
| 
 |  | ||||||
|             DavResource davResource = new DavResource(getClient(), getWebDavHttpUrl("/")); |             DavResource davResource = new DavResource(getClient(), getWebDavHttpUrl("/")); | ||||||
|             davResource.propfind(0, DisplayName.NAME); |             davResource.propfind(1, PropertyUtils.INSTANCE.getAllPropSet()); | ||||||
| 
 | 
 | ||||||
|         } catch (Exception e) { |         } catch (Exception e) { | ||||||
|             e.printStackTrace(); |             e.printStackTrace(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user