Пример #1
0
 public override void CopyFolder(FileManagerFolder folder, FileManagerFolder newParentFolder)
 {
     ProcessBlueprintDataProvider.Insert(new FileSystemItem
     {
         IsFolder      = true,
         Name          = folder.Name,
         ParentId      = FindFolderItem(newParentFolder).ParentId,
         LastWriteTime = DateTime.Now
     });
 }
Пример #2
0
 public override void CreateFolder(FileManagerFolder parent, string name)
 {
     ProcessBlueprintDataProvider.Insert(new FileSystemItem
     {
         IsFolder      = true,
         Name          = name,
         ParentId      = FindFolderItem(parent).FileId,
         LastWriteTime = DateTime.Now
     });
     RefreshFolderCache();
 }
Пример #3
0
 public override void UploadFile(FileManagerFolder folder, string fileName, Stream content)
 {
     ProcessBlueprintDataProvider.Insert(new FileSystemItem
     {
         IsFolder      = false,
         LastWriteTime = DateTime.Now,
         Name          = fileName,
         ParentId      = FindFolderItem(folder).FileId,
         Data          = ReadAllBytes(content)
     });
     //base.UploadFile(folder, fileName, content);
 }
Пример #4
0
        public override void CopyFile(FileManagerFile file, FileManagerFolder newParentFolder)
        {
            var fileData = FindFileItem(file);

            if (fileData != null)
            {
                ProcessBlueprintDataProvider.Insert(new FileSystemItem
                {
                    IsFolder      = false,
                    ParentId      = FindFolderItem(newParentFolder).FileId,
                    Name          = fileData.Name,
                    Data          = fileData.Data,
                    LastWriteTime = DateTime.Now
                });
            }

            RefreshFolderCache();
        }