cfdirectory thinks directory is a file
I have a utility that allows the user to select a top-level directory, then displays a list of files in the directory as hyperlinks. Any subdirectories are displayed separately and the hyperlink changes the default directory to that subdirectory where the process is repeated. It basically works using <cfdirectory> and using the "type" column in the results to distinguish between files and directories. It works fine in development but when I moved it to a staging location on the same server my top-level subdirectory gets treated as a file rather than a directory. I dumped the cfdirectoy query and sure enough the Type for that directory is "File". Very curious because this directory structure parallels the one on dev which correctly shows the subdirectory with Type = "Dir". The directories are identical with regard to permissions and also the contents are the same (the top-level subdirectory in each case contains two other subdirectories). OS is Linux.
This is my cfdirectory tag:
<cfdirectory directory="#ExpandPath('.')#/#strDirectory#" name="qFiles" sort="type desc,name">
where strDirectory is initially set to the top-level directory selected by the user.
This has me stumped - any ideas?
