1
내가 구조체가 라이브러리 (Google Data API SDK)이동 파일 또는 폴더를 사용하여 API를 문제 구글 문서에서
public static void moveFolder(string szUserName, string szPassword, string szResouceID, string szToFolderResourceID)
{
string szSouceUrl = "https://docs.google.com/feeds/default/private/full"
+ "/" + HttpContext.Current.Server.UrlEncode(szResouceID);
Uri sourceUri = new Uri(szSouceUrl);
//create a atom entry
AtomEntry atom = new AtomEntry();
atom.Id = new AtomId(szSouceUrl);
string szTargetUrl = "http://docs.google.com/feeds/default/private/full/folder%3Aroot/contents/";
if (szToFolderResourceID != "")
{
szTargetUrl = "https://docs.google.com/feeds/default/private/full"
+ "/" + HttpContext.Current.Server.UrlEncode(szToFolderResourceID)
+ "/contents"
;
}
Uri targetUri = new Uri(szTargetUrl);
DocumentsService service = new DocumentsService(SERVICENAME);
((GDataRequestFactory)service.RequestFactory).KeepAlive = false;
service.setUserCredentials(szUserName, szPassword);
service.EntrySend(targetUri, atom, GDataRequestType.Insert);
}
은 실행 후이 기능을 내가 가지고
Folder1
+------Folder1-1
+------+------File1-1-1
+------Folder1-2
+------File1-1
Folder2
+------File1-1
"File1-1"디스플레이에서 둘 다 "Folder1"과 "Folder2", 내가 그것을 다른 폴더에서 삭제됩니다 폴더에서 삭제할 때. (예상 : "File1-1"은 "Folder2"에만 표시)
어떻게됩니까? 이 문제를 어떻게 해결할 수 있습니까?
답장을 보내 주셔서 감사합니다. 나는 내 문제를 해결했다. File1-1을 Folder2로 이동하고 Folder1 폴더에서 File1-1을 이동했습니다. –