IsDirectory() public static method

public static IsDirectory ( string path ) : bool
path string
return bool
Exemplo n.º 1
0
        protected virtual bool FileChangeIsOfInterest(string fileName)
        {
            if (HgPath.IsDirectory(fileName))
            {
                return(false);
            }

            if (fileName.IndexOf(@"\.hg") != -1)
            {
                return(false);
            }

            return(HasChanged(fileName));
        }
Exemplo n.º 2
0
        private static string[] GetFileArguments(string root, IEnumerable <string> fileNames)
        {
            var args = new List <string>();
            var sb   = new StringBuilder();

            foreach (var fileName in fileNames.Where(x => !HgPath.IsDirectory(x)).Select(x => HgPath.StripRoot(x, root)))
            {
                if (sb.Length > ArgumentsLengthLimit - fileName.Length - 3)
                {
                    args.Add(sb.ToString());
                    sb.Length = 0;
                }

                sb.Append(' ').Append('"').Append(fileName).Append('"');
            }

            args.Add(sb.ToString());

            return(args.ToArray());
        }