Exemplo n.º 1
0
        public string RestoreDeletedFile(string InFullFileName, string OutFullFileName)
        {
            FileRecord fileRecord = GetDeletedInstance(InFullFileName);

            if (fileRecord.IsNull())
            {
                return("Can't restore File, no trace in Master File Table");
            }
            FileRecordAttribute attribute = fileRecord.Attribute.First(a => a.Name == FileRecordAttribute.ATTR_TYPE.DATA);

            if (attribute.IsNull())
            {
                return("Can't find any attribute data to locate the deleted File");
            }
            fileRecord.CopyFile(OutFullFileName);
            return("File copied");
        }