public function isGSheetFileNameIgnored($fullName): bool
    {

        $nameWithoutExtension = explode('.', $fullName)[0];

        if (
            '_' === substr($fullName, -1) ||
            '_' === substr($nameWithoutExtension, -1)
        ) {
            // @todo feedback that this file was ignored?
            return true;
        }

        return false;
    }
public function isGSheetFileNameIgnored($fullName): bool
    {

        $nameWithoutExtension = explode('.', $fullName)[0];

        if (
            '_' === substr($fullName, -1) ||
            '_' === substr($nameWithoutExtension, -1)
        ) {
            // @todo feedback that this file was ignored?
            return true;
        }

        return false;
    }
public function isGSheetFileNameIgnored ( $ fullName ) : bool { $ nameWithoutExtension = explode ( '.' , $ fullName ) [ 0 ] ; if ( '_' === substr ( $ fullName , - 1 ) || '_' === substr ( $ nameWithoutExtension , - 1 ) ) { // @todo feedback that this file was ignored? return true ; } return false ; }
If a file is called foo_, then it is assumed to be 'private' and should be explicitly ignored,

Implements GSuiteHandlingSpecificationsInterface

Test if full file name ends with _ or only filename without the extension
i.e. foo_.xlsx and foo__

@param $fullName of Google Sheet
@return bool
If a file is called foo_ then it is assumed to be private and should be explicitly ignored