Skip to content

Commit

Permalink
file listing util now lists symbolic links
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz committed Mar 9, 2015
1 parent ec99bff commit 6a07ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/fileops.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace dd
if ((dir = opendir(repo.c_str())) != NULL) {
/* print all the files and directories within directory */
while ((ent = readdir(dir)) != NULL) {
if ((files && ent->d_type == DT_REG)
if ((files && (ent->d_type == DT_REG || ent->d_type == DT_LNK))
|| (dirs && ent->d_type == DT_DIR && ent->d_name[0] != '.'))
lfiles.insert(std::string(repo) + "/" + std::string(ent->d_name));
}
Expand Down

0 comments on commit 6a07ee0

Please sign in to comment.