nodrock / redtamarin

Automatically exported from code.google.com/p/redtamarin
Other
0 stars 1 forks source link

unicode path issue with isHidden under WIndows #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
when we pass a relative path to isHidden() 
the result will always be wrong

as we preprend "\\\\?\\" to support unicode path

a path like "..\test" will transform to "\\\\?\\..\test" and most likely will 
not be found

see
https://code.google.com/p/redtamarin/source/browse/trunk/src/as3/shell/FileSyste
m.as#2687

the fileSystem.isHidden function need to be patched

from
----
case "windows":
return _isAttributeHidden( "\\\\?\\" + filename );
----

to
----
case "windows":
return _isAttributeHidden( "\\\\?\\" + realpath( filename ) );
----

Original issue reported on code.google.com by zwetan on 29 Jan 2015 at 6:24