System.IO.FileSystem.FileExists C# (CSharp) Méthode

FileExists() public abstract méthode

public abstract FileExists ( string fullPath ) : bool
fullPath string
Résultat bool
        public abstract bool FileExists(string fullPath);
        public abstract FileStream Open(string fullPath, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, FileStream parent);

Usage Example

Exemple #1
0
        public CommandRunner()
        {
            var path = AppDomain.CurrentDomain.BaseDirectory;

            var fileSystem = new FileSystem();

            bool isFound = fileSystem.FileExists(path, @"src\fubu\bin\debug", "fubu.exe");
            while (!isFound)
            {
                path = Path.Combine(path, "..");
                isFound = fileSystem.FileExists(path, @"src\fubu\bin\debug", "fubu.exe");
            }

            _solutionDirectory = Path.GetFullPath(path);
        }
All Usage Examples Of System.IO.FileSystem::FileExists