Bug 17334 - On Windows, list.files show hidden files
Summary: On Windows, list.files show hidden files
Alias: None
Product: R
Classification: Unclassified
Component: I/O (show other bugs)
Version: R-devel (trunk)
Hardware: Other Windows 64-bit
: P5 major
Assignee: R-core
Depends on:
Reported: 2017-08-30 13:17 UTC by Jean-Sébastien Bevilacqua
Modified: 2017-08-30 13:17 UTC (History)
0 users

See Also:

patch (3.02 KB, patch)
2017-08-30 13:17 UTC, Jean-Sébastien Bevilacqua
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Sébastien Bevilacqua 2017-08-30 13:17:02 UTC
Created attachment 2290 [details]


The function list.files should not show hidden file if all.files is set to FALSE.
Currently it's not properly working.

To reproduce it, just set a file as hidden (not starting with .) and you will see it.

In R, a hidden file is a file starting with a '.', this assumption is true on Linux but false on Windows. Indeed, Windows use a file attribute to hide a file.

I join a patch that shows how to fix this bug.

Jean-Sébastien Bevilacqua