Esempio n. 1
0
 /// <summary>
 /// Determines whether the filesystem on which the specified path is
 /// located is case-sensitive.
 /// </summary>
 /// <param name="path">The path of which should be determined whether its on a case-sensitive filesystem.</param>
 /// <returns>
 /// <see langword="true" /> if <paramref name="path" /> is located on a
 /// case-sensitive filesystem; otherwise, <see langword="false" />.
 /// </returns>
 private bool IsCaseSensitiveFileSystem(string path)
 {
     return(PlatformHelper.IsVolumeCaseSensitive(Path.GetFullPath(path)
                                                 + Path.DirectorySeparatorChar));
 }
Esempio n. 2
0
        /// <summary>
        /// Determines whether the file system is case sensitive. Performs a
        /// P/Invoke to the Win32 API GetVolumeInformation.
        /// </summary>
        /// <param name="uri"></param>
        /// <returns>
        /// <see langword="true" /> if the specified volume is case-sensitive;
        /// otherwise, <see langword="false" />.
        /// </returns>
        public static bool IsVolumeCaseSensitive(Uri uri)
        {
            ValidateURI(uri);

            return(PlatformHelper.IsVolumeCaseSensitive(uri.LocalPath));
        }