Replies: 1 comment
-
hi! Let's summarize what you are doing for other readers: you are deciding what file to use as icon for folders, based on what files are available on the server. First: there's no such thing as the "exists" function in your context, and i'm sure you get an error on that. Programming for client-server is not the easiest of things. The other approach to the problem is do all the work directly on the server (AKA back-end), that is "plugin.js". |
Beta Was this translation helpful? Give feedback.
-
Hello rejetto, maybe you remember me, I'm sorry to bother you again, but, I'm completely stuck.
(also hello to whoever else reading this, not to be rude)
I am using following code to display custom file and folder icons: 1_works.txt
(I have to attach it since ` symbols break github formatting)
it works, but it's dumb, it doesn't check if pic is actually present in folder, also it only checks for first pic
so i tried this code, similar to those i was using in delphi version of hfs: 2_does_not_work.txt
it's much better on paper, however it doesn't work at all. i tried so many variants of it, always failing.
what am i doing wrong? guess i'm misusing "exists" function? or loop? or something else?
Beta Was this translation helpful? Give feedback.
All reactions