12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- namespace Admin.Core.Common.Files
- {
-
-
-
- public class FileInfo
- {
- public FileInfo()
- {
- }
-
-
-
-
-
- public FileInfo(string fileName, long size = 0L)
- {
- FileName = fileName;
- Size = new FileSize(size);
- Extension = System.IO.Path.GetExtension(FileName)?.TrimStart('.');
- }
-
-
-
- public string UploadPath { get; set; }
-
-
-
- public string RequestPath { get; set; }
-
-
-
- public string RelativePath { get; set; }
-
-
-
- public string FileName { get; set; }
-
-
-
- public string SaveName { get; set; }
-
-
-
- public FileSize Size { get; set; }
-
-
-
- public string Extension { get; set; }
-
-
-
- public string FileDirectory => System.IO.Path.Combine(UploadPath, RelativePath).ToPath();
-
-
-
- public string FileRequestPath => System.IO.Path.Combine(RequestPath, RelativePath, SaveName).ToPath();
-
-
-
- public string FileRelativePath => System.IO.Path.Combine(RelativePath, SaveName).ToPath();
-
-
-
- public string FilePath => System.IO.Path.Combine(UploadPath, RelativePath, SaveName).ToPath();
- }
- }
|