Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folder Icon Change #338

Open
MagaKhachatryan opened this issue Aug 8, 2023 · 2 comments
Open

Folder Icon Change #338

MagaKhachatryan opened this issue Aug 8, 2023 · 2 comments

Comments

@MagaKhachatryan
Copy link

Hi Dokan Support team!
I would like to know if its possible to change folder icon in Dokan? I enable the desktop.ini file to be in drive, because I have removed all the if statements in the result of which dektop.ini file was impossible to upload in drive, it doesn't work. Even if I copy the folder with changed icon from other destination to drive, it appears and is shown in drive with folder default icon.

@MagaKhachatryan MagaKhachatryan changed the title Folder Icon Chnage Folder Icon Change Aug 8, 2023
@Liryna
Copy link
Member

Liryna commented Aug 8, 2023

Hi @MagaKhachatryan , yes it is possible but you must make your filesystem compliant. I don't have a link to share but indeed there is the desktop.ini and some other information you will need to return.

@stroev-ao
Copy link

Hi @MagaKhachatryan.

  1. In folder for that you want set icon you must return desktop.ini file as child object. It must be hidden and readonly. It's content must be like:
[.ShellClassInfo]
IconResource=path_to_your_icon (*.ico or *.bmp)
  1. Folder for that you want to set icon must have attribute FileAttributes.System
    If you still have any questions, aks, i'll try to answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants