[fix] Work for directories and files
[fix] Work for directories and files

anthonyfuentes/hubzero-cms,zooley/hubzero-cms,zooley/hubzero-cms,zweidner/hubzero-cms,zooley/hubzero-cms,anthonyfuentes/hubzero-cms,anthonyfuentes/hubzero-cms,zweidner/hubzero-cms,anthonyfuentes/hubzero-cms,zweidner/hubzero-cms,zooley/hubzero-cms,zweidner/hubzero-cms