Beispiel #1
0
        private void ConverEntryToFileStat(ref Entry entry, out FileStat file_stat)
        {
            file_stat = new FileStat();

            file_stat.hash = entry.Hash;
            file_stat.size = entry.Fsize;
            file_stat.time = entry.PutTime;
            file_stat.type = entry.MimeType;
        }
Beispiel #2
0
 private bool GetFileInfo(string filename, out Entry entry)
 {
     //实例化一个RSClient对象,用于操作BucketManager里面的方法
     RSClient client = new RSClient();
     //调用Stat方法获取文件的信息
     entry = client.Stat(new EntryPath(m_qiniuconf.bucketname, filename));
     return entry.OK;
 }