AzureWebFarm.Services.Executable.Exists C# (CSharp) Method

Exists() public method

public Exists ( ) : bool
return bool
        public bool Exists()
        {
            return File.Exists(GetOriginalExePath());
        }

Usage Example

Beispiel #1
0
        public IEnumerable <Executable> FindExecutables(string siteName)
        {
            var binFolder = Path.Combine(_sitesPath, siteName, "bin");

            if (!Directory.Exists(binFolder))
            {
                yield break;
            }

            var subDirs = Directory.EnumerateDirectories(binFolder);

            foreach (var d in subDirs)
            {
                var subDir = d.Split(Path.DirectorySeparatorChar).Last();
                var exe    = new Executable(binFolder, subDir);

                if (exe.Exists())
                {
                    yield return(exe);
                }
            }
        }
All Usage Examples Of AzureWebFarm.Services.Executable::Exists