Menu ▾ ▴

#601 file /a does not preserve folder attributes

2.0 Series
closed-fixed
Scripting (211)
5
2007-04-12
2007-04-12
sgt-d
No

file /a does not preserve folder attributes

example:

file /a /r /x .svn ..\test_portable_core\*.*

there are two subfolders inside the "test_portable_core" folder.

both folders are set to +r and each contains a "desktop.ini" file describing the icon to use for the folder.

because of this, i see a custom icon for these two folders.

when my nsis built exe extracts all of the files and folders (to a new location), the extracted folders are not set to +r. the end result is that the extracted folders do not display the custom icon.

i will try setfileattributes as a workaround for now.

-sgt

Discussion

  • Amir Szekely

    Amir Szekely - 2007-04-12
    • labels: 458220 --> Scripting
    • assigned_to: nobody --> kichik
    • status: open --> closed-fixed
     
  • Amir Szekely

    Amir Szekely - 2007-04-12

    Logged In: YES
    user_id=584402
    Originator: NO

    Thanks, fixed. When GetFileAttributes was called on the compiler side, the wrong directory name was passed. Only the directory name was passed and not the entire path leading to it. This caused GetFileAttributes to fail.

     

Log in to post a comment.