src/Misc/EFTools/XmlCore/Common/FileUtils.cs
/// <summary>
///     Internal implementation of the Canonicalization routine.  Note
///     that this canonicalization assumes you have a case-insensitive filesystem
///     because part of the canonicalization is to upcase.
/// </summary>
/// <param name="path"></param>
/// <param name="pathIsDir"></param>
/// <returns></returns>
Internal implementation of the Canonicalization routine.  Note
that this canonicalization assumes you have a case-insensitive filesystem
because part of the canonicalization is to upcase.
Internal implementation of the Canonicalization routine . Note that this canonicalization assumes you have a case - insensitive filesystem because part of the canonicalization is to upcase .
private static string CanonicalizeFileNameOrDirectoryImpl(string path, bool pathIsDir)
        {
            if (path.StartsWith(MSSqlUrlScheme, StringComparison.OrdinalIgnoreCase)
                ||
                path.StartsWith(MSSqlClrUrlScheme, StringComparison.OrdinalIgnoreCase))
            {
                return path;
            }
            path = Path.GetFullPath(path);
            path = path.ToUpperInvariant();
            if (pathIsDir)
            {
                return EnsureNoBackslash(path);
            }
            return path;
        }
private static string CanonicalizeFileNameOrDirectoryImpl ( string path , bool pathIsDir ) { if ( path . StartsWith ( MSSqlUrlScheme , StringComparison . OrdinalIgnoreCase ) || path . StartsWith ( MSSqlClrUrlScheme , StringComparison . OrdinalIgnoreCase ) ) { return path ; } path = Path . GetFullPath ( path ) ; path = path . ToUpperInvariant ( ) ; if ( pathIsDir ) { return EnsureNoBackslash ( path ) ; } return path ; }
Internal implementation of the Canonicalization routine.
Internal implementation of the Canonicalization routine .
// Remove ".." // Upcase
None
path
string
None
pathIsDir
bool
None