concrete/src/File/FileList.php
public function filterByStorageLocation($storageLocation) {
        if ($storageLocation instanceof \Concrete\Core\Entity\File\StorageLocation\StorageLocation) {
            $this->filterByStorageLocationID($storageLocation->getID());
        } elseif (!is_object($storageLocation)) {
            $this->filterByStorageLocationID($storageLocation);
        } else {
            throw new Exception(t('Invalid file storage location.'));
        }
    }
public function filterByStorageLocation($storageLocation) {
        if ($storageLocation instanceof \Concrete\Core\Entity\File\StorageLocation\StorageLocation) {
            $this->filterByStorageLocationID($storageLocation->getID());
        } elseif (!is_object($storageLocation)) {
            $this->filterByStorageLocationID($storageLocation);
        } else {
            throw new Exception(t('Invalid file storage location.'));
        }
    }
public function filterByStorageLocation ( $ storageLocation ) { if ( $ storageLocation instanceof \ Concrete \ Core \ Entity \ File \ StorageLocation \ StorageLocation ) { $ this -> filterByStorageLocationID ( $ storageLocation -> getID ( ) ) ; } elseif ( ! is_object ( $ storageLocation ) ) { $ this -> filterByStorageLocationID ( $ storageLocation ) ; } else { throw new Exception ( t ( 'Invalid file storage location.' ) ) ; } }
Filter the files by their storage location using a storage location object.

@param \Concrete\Core\Entity\File\StorageLocation\StorageLocation|int $storageLocation storage location object
Filter the files by their storage location using a storage location object .