Exemplo n.º 1
0
        private string op2(FileHandle op, QiniuCloudEntryPair pair)
        {
            string url = string.Format("{0}/{1}/{2}/{3}",
                                       QiniuHosts.RS_HOST,
                                       OPS [(int)op],
                                       pair.First.Url,
                                       pair.Second.Url);

            return(webClient.Get(new Uri(url)));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Copy the specified src and dest.
 /// </summary>
 /// <param name="src">Source.</param>
 /// <param name="dest">Destination.</param>
 public void Copy(QiniuCloudEntryPair entryPair)
 {
     op2(FileHandle.COPY, entryPair);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Move the specified src and dest.
 /// </summary>
 /// <param name="src">Source.</param>
 /// <param name="dest">Destination.</param>
 public void Move(QiniuCloudEntryPair entryPair)
 {
     op2(FileHandle.MOVE, entryPair);
 }