Package unpack: hide files starting with a '.'
On Linux a hidden file starts with '.' on Windows it's a special value attached in the file system. To make the behavior consistent for files across platforms we should consider automatically hiding files starting with '.' when these files are unpacked.
The '.' syntax should apply boths files and directories.
On Windows, during tap package install
, if the file or directory starts with a '.' then it should be hidden.
Notes:
- To check operative system:
if(OperatingSystem.Current == OperatingSystem.Windows){/*...*/}
- To hide the file:
File.SetAttributes(filePath, FileAttributes.Hidden)
Edited by Vivienne Spence