Exemplo n.º 1
0
        protected override IEnumerable <IFolder> GetFolders()
        {
            READ_DATA_TYPES types = READ_DATA_TYPES.RD_OPEN_BACKUP_FOR_RESTORE |
                                    READ_DATA_TYPES.RD_NOT_CHANGE_VERSION |
                                    READ_DATA_TYPES.RD_READ_BACKUP_TREE;

            jobData = new JobData();
            NB_ERROR_CODE errorCode = jobData.Load(types, JsonPath, false, true);

            if (errorCode == NB_ERROR_CODE.EC_SUCCESS && !isDisposed)
            {
                this.CurrentFolder = jobData.GetCollection(NB_JOBDATA_COLLECTION_TYPE.NB_JOBDATA_COLLECTION_FILEBACKUPITEM) as IFileBackupItem;
                if (this.CurrentFolder != null && !isDisposed)
                {
                    return(base.GetFolders());
                }
            }
            return(this.Folders);
        }