This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Files with attribute temporary invisible in cygwin

There exist files in windows 7 which can't be deleted using cygwin "rm" command. Files are visible from windows command line or Windows Explorer but are invisible by "ls -lA" command:

$   ls -lA `cygpath 'C:\ProgramData\Microsoft\Diagnosis\DownloadedSettings'`
total 16
-rwxrwx---+ 1 Administrators SYSTEM 1016 Aug 23  2017 telemetry.ASM-WindowsDefault.json.bk
-rwxrwx---+ 1 Administrators SYSTEM  795 Aug 23  2017

Dir command from cmd.exe shows that there are 2 more files (with extension .json) previously invisible:

c:\>  dir C:\ProgramData\Microsoft\Diagnosis\DownloadedSettings /b

It seems to be connected with the temporary attribute which both 2 mentioned files have set:

c:\>  for %i in (C:\ProgramData\Microsoft\Diagnosis\DownloadedSettings\*) do @echo %~ai %i --a----t- c:\ProgramData\Microsoft\Diagnosis\DownloadedSettings\telemetry.ASM-WindowsDefault.json --a------ c:\ProgramData\Microsoft\Diagnosis\DownloadedSettings\telemetry.ASM-WindowsDefault.json.bk
--a----t- c:\ProgramData\Microsoft\Diagnosis\DownloadedSettings\
--a------ c:\ProgramData\Microsoft\Diagnosis\DownloadedSettings\

Together with above mentioned 2 files


I have found three more files in Windows 7


with the same behavior (invisible by ls, undeletable by rm but visible from windows) and all have the temporary attribute set.

Files are invisible/undeletable with ls/rm even from WindowsPE which does not run from C: disk and can not keep those files open.

Pavel Kudrna

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]