Ejemplo n.º 1
0
        public async Task SubDirAsync(S3DirObject subobj)
        {
            Level++;
            IsRoot = (Level == rootLevel);
            OldDir = CurrentDir;
            DirStack.Push(CurrentDir);
            CurrentDir = subobj;

            await UpdateDirAsync();
        }
Ejemplo n.º 2
0
 public S3Dir(IS3Service service, string userName, S3TypeFile typeFile)
 {
     rootLevel = 3;
     _is3      = service;
     UserName  = userName;
     rootPath  = $"Users/{userName}/{typeFile.ToString()}";
     //BackDirName = BackDirPath = "";
     //DirPath = DirName = userName;
     CurrentDir = new S3DirObject
     {
         Name         = typeFile.ToString(),
         FullPathName = rootPath
     };
     IsRoot = true;
     Level  = rootLevel;
 }
Ejemplo n.º 3
0
 public S3Dir(IS3Service service, string rootPath)
 {
     rootLevel     = rootPath == "" ? 0 : rootPath.Split('/').Length;
     _is3          = service;
     UserName      = "";
     this.rootPath = rootPath;
     //Console.WriteLine("----------------- " + rootPath);
     //BackDirName = BackDirPath = "";
     //DirPath = DirName = userName;
     CurrentDir = new S3DirObject
     {
         Name         = "Root",
         FullPathName = rootPath
     };
     IsRoot = true;
     Level  = rootLevel;
 }