System.IO.FileSystem.FileExists C# (CSharp) 메소드

FileExists() 공개 추상적인 메소드

public abstract FileExists ( string fullPath ) : bool
fullPath string
리턴 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

예제 #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