Exemple #1
0
        public Folder(string path, int level, FolderManager manager, Folder parent = null)
        {
            _path    = path;
            _name    = path.Substring(path.LastIndexOf("\\"));
            _level   = ++level;
            _manager = manager;

            if (parent == null)
            {
                _parent = this;
            }
            else
            {
                _parent = parent;
            }

            Log();
            manager.AddFolder(this);
            Scan();
        }