Nice little directory browser :D

api/files: revert field names to PascalCase

+5 -4
+5 -4
views/api/files.json.ps1
··· 22 22 $CurrentPath = ($WebEvent.Query.Path -eq '/') ? "" : $WebEvent.Query.Path 23 23 $JoinedPath = $Data.JoinedPath 24 24 25 + <# ### ### ### #> 25 26 Get-ChildItem -Lit $JoinedPath | ? { -not (_check_path_on_blacklist $_) } | % { 26 27 # bug ???? 27 28 if ($_ -isnot [IO.FileSystemInfo]) { ··· 31 32 $is_file = _is_file $_ 32 33 33 34 @{ 34 - type = $is_file ? 'file' : 'directory' 35 - name = $_.Name 36 - size = $is_file ? $_.size : $null # check if works for symlinks!! 37 - last_modified = [uint64](Get-Date $_.LastWriteTime -UFormat '%s' -AsUTC) 35 + Type = $is_file ? 'file' : 'directory' 36 + Name = $_.Name 37 + Size = $is_file ? $_.size : $null # check if works for symlinks!! 38 + LastModified = [uint64](Get-Date $_.LastWriteTime -UFormat '%s' -AsUTC) 38 39 } 39 40 }