Example #1
0
 /// <summary>
 /// config default file access option
 /// </summary>
 /// <param name="fileAccessOption">file access option</param>
 public static void ConfigDefaultFileAccess(FileAccessOption fileAccessOption)
 {
     Default = fileAccessOption;
 }
Example #2
0
 /// <summary>
 /// get file full path
 /// </summary>
 /// <param name="fileAccessOption">file access option</param>
 /// <param name="fileRelativePath">file path</param>
 /// <returns></returns>
 public static string GetFileFullPath(FileAccessOption fileAccessOption, string fileRelativePath)
 {
     return(fileAccessOption?.GetFilePath(fileRelativePath) ?? fileRelativePath);
 }