You could do something like this. The code below works for folders or files, though its relying on your function to return some sort of path to 'something' whether that be a folder or file name.
$DBFiles = Get-DataFilePathList
foreach ($DBFile in $DBFiles)
{
$FileName = $DBFile.DataFilePath
"FILE: $FileName"
"**********************"
(Get-Acl $DBFile.DataFilePath).Access | select IdentityReference,FileSystemRights | Write-Output
}