Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Ignore hidden folders in pictures directory
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=3778
Page 1 of 1

Author:  martinalex [ 14. Jan 2015, 17:16 ]
Post subject:  Ignore hidden folders in pictures directory

Hello,

I am using TWG in combination with unison to manage my picture gallery. My problem is now that while uploading the webpage is in a very bad shape as unison creates a lot of hidden folders for the synchronisation process (with a session ID in the end, so extending the ignore parameter does not work as a wildcard would be needed).

I would like TWG to just ignore all possible hidden folders while traversing the pictures folder, is this possible? (I dont think anybody is using a hidden folder for images...)

best regards
Martin

Author:  TinyWebGallery [ 14. Jan 2015, 18:21 ]
Post subject:  Re: Ignore hidden folders in pictures directory

how should TWG know that is is hidden? Starting with a . ?

Best, Michael

Author:  martinalex [ 15. Jan 2015, 09:06 ]
Post subject:  Re: Ignore hidden folders in pictures directory

exactly, i meant all those folders starting with a '.' as they are not displayed by default when using linux.. Somehow i only thought about using a linux webserver..

best regards and thanks a lot,
Martin

Author:  TinyWebGallery [ 15. Jan 2015, 11:02 ]
Post subject:  Re: Ignore hidden folders in pictures directory

I checked the code. There are a couple of places where this would need to be changed. Currently there is "if in array x" is used. This places need to be replaced by a substring search inside an array.

Best, Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/