$siteFolder="D:homesitewwwroot";

$tempFolder="d:homesitetemp";

$csvFile="contents.csv";

$delimiter= ',';

if (!(Test-Path $tempFolder -PathType Container)) {New-Item -ItemType Directory -Force -Path $tempFolder}get-childitem $siteFolder -rec  | select-object FullName, Length | export-csv -notypeinformation -delimiter $delimiter -path $tempFolder$csvFile

Further information about investigating deployment versus runtime issues is posted here:

https://github.com/projectkudu/kudu/wiki/Deployment-vs-runtime-issues