Exemple #1
0
        public BaseFile(BaseFolder ParentFolder, FileMetaInfo MetaFile)
        {
            this.ParentFolder = ParentFolder;
            this.Name = MetaFile.Name;

            RelativePath = Path.Combine(ParentFolder.RelativePath, Name);
            MetaPath = Path.Combine(ParentFolder.MetaPath, Name);
            RealPath = Path.Combine(ParentFolder.RealPath, Name);

            _meta = MetaFile;
            _meta.ParenFile = this;

            MetaFile.Save();
        }
Exemple #2
0
        internal void UpdateMeta(FileMetaInfo Meta,bool remote)
        {
            _meta = Meta;
            _meta.ParenFile = this;
            _meta.Save();

            if (OnFileEvent != null)
                OnFileEvent(this, remote?FSObjectEvents.remote_changed:FSObjectEvents.local_changed);
        }