Example #1
0
        public void SaveFileInfo(PoolFile poolFile, string physicalPath)
        {
            FileInfo fileInfo = new FileInfo(physicalPath);

            poolFile.Exists = fileInfo.Exists;
            poolFile.Length = fileInfo.Length;
            poolFile.SetPhysicalPath(physicalPath);
            poolFile.SetCreationTimeUtc(fileInfo.CreationTimeUtc);
            poolFile.SetLastWriteTimeUtc(fileInfo.LastWriteTimeUtc);

            //
            CreateInfoAccessor().Add(poolFile);
        }