예제 #1
0
        public static string GetRelativeFilePathWithFileName(this IFileMetaData fm)
        {
            string relativePath = fm.GetRelativeFilePath();

            if (!string.IsNullOrWhiteSpace(relativePath))
            {
                return($"{relativePath}\\{fm.FileNameWithExtension()}");
            }
            return(fm.FileNameWithExtension());
        }
        public static string GetRelativeFilePathWithFileName(this IFileMetaData fm)
        {
            var relativePath = fm.GetRelativeFilePath();

            if (!string.IsNullOrWhiteSpace(relativePath))
            {
                return(Path.Combine(relativePath, fm.FileNameWithExtension()));
            }

            return(fm.FileNameWithExtension());
        }