/** * Load a single File object, * by DirectoryId, Path Index(es) * @param integer $intDirectoryId * @param string $strPath * @return File */ public static function LoadByDirectoryIdPath($intDirectoryId, $strPath) { return File::QuerySingle(QQ::AndCondition(QQ::Equal(QQN::File()->DirectoryId, $intDirectoryId), QQ::Equal(QQN::File()->Path, $strPath))); }