CK.Core.FileUtil.TryMoveTo C# (CSharp) Method

TryMoveTo() static private method

static private TryMoveTo ( string sourceFilePath, string timedPath ) : bool
sourceFilePath string
timedPath string
return bool
        static bool TryMoveTo( string sourceFilePath, string timedPath )
        {
            try
            {
                if( File.Exists( timedPath ) ) return false;
                File.Move( sourceFilePath, timedPath );
                return true;
            }
            catch( IOException ex )
            {
                if( ex is PathTooLongException || ex is DirectoryNotFoundException ) throw;
            }
            return false;
        }