Fan.Sys.LocalFile.exists C# (CSharp) Méthode

exists() public méthode

public exists ( ) : bool
Résultat bool
        public override bool exists()
        {
            return m_file.Exists;
        }

Usage Example

Exemple #1
0
        //////////////////////////////////////////////////////////////////////////
        // Sys Config
        //////////////////////////////////////////////////////////////////////////

        private static Map initSysConfig()
        {
            try
            {
                string    path = FileUtil.combine(m_homeDir, "etc", "sys", "config.props");
                LocalFile f    = new LocalFile(new FileInfo(path));

                if (f.exists())
                {
                    try
                    {
                        return(f.readProps());
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine("ERROR: Invalid props file: " + f);
                        Console.WriteLine("  " + e);
                    }
                }
            }
            catch (Exception e)
            {
                throw initFail("sysConfig", e);
            }
            return(m_emptyStrStrMap);
        }
All Usage Examples Of Fan.Sys.LocalFile::exists