예제 #1
0
        protected virtual string GetFullPath(string relativePath)
        {
            relativePath = _pathHelper.CleanFileName(relativePath.SetNullToEmpty().Replace("/", @"\"));

            if (!Directory.Exists(relativePath) && !File.Exists(relativePath))
            {
                Directory.CreateDirectory(relativePath);
            }

            return(relativePath);
        }