dndm

dndm Mercurial Source Tree


Root/MyDownloader.Core/Common/PathHelper.cs

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
 
namespace MyDownloader.Core.Common
{
    public static class PathHelper
    {
        public static string GetWithBackslash(string path)
        {
            if (!path.EndsWith(Path.DirectorySeparatorChar.ToString()))
            {
                path += Path.DirectorySeparatorChar.ToString();
            }
 
            return path;
        }
    }
}
Source at commit 1dae03ea3242 created 11 years 10 months ago.
By Nathan Adams, Initial commit

Archive Download this file

Branches

Tags

Page rendered in 0.82877s using 11 queries.