ZenphotoCMS Forum
lot of @eaDir Albums - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: lot of @eaDir Albums (/thread-5037.html)



lot of @eaDir Albums - phire - 2009-04-14

Hi

I'm new here.
Zenphoto looks to what I'm looking for to manage my pix at on my home network, replacing iPhoto on a single Mac. So I decided to install it on my nas (a synology).

No problem for installation, except I had to put RewriteEngine Off in the .htacess file (if i didn'nt, i had a can't find page error).

My problem now, is that, in every album and in the gallery, I have a @eadDir album (or subalbum).It 's look like a trash folder (for example i noticed that it contains files with the old name for album/files that I rename in ZenPhoto admin). The main troubleshouting is that i see these @eaDir in the Gallery view of ZenPhoto and their are found by search.

Thanks by advance for your answer.

Philippe.

PS : I apologize for my poor english, I'm a french guy




lot of @eaDir Albums - acrylian - 2009-04-14

I have no idea what these @eadDir are. I am on Mac (10.4.11), too. Could these maybe be leftover from iPhoto (which I don't use)?




lot of @eaDir Albums - fuchur777 - 2010-02-19

the @eadir are created by the synology nas. I am also trying to exclude these dirs.

Is there an option in ZEN to exclude folders with a certain name? That would slove it easily.

Ta Frank




lot of @eaDir Albums - sbillard - 2010-02-19

There is not, but you probably could make a variant of the filter-new_objects plugin which would automatically mark albums as not published. It might also be possible to have the filter delete them, but you would have to experiment with that.




lot of @eaDir Albums - sbillard - 2010-02-19

Also see if the filter-file_searches plugin can help.




lot of @eaDir Albums - UlrichB - 2011-09-09

This thread has been inactive for some time, but maybe someone can benefit from the following solution.

In class-album.php I've made a small change to the getSubAlbums function. It simply searches for "eadir" and ignores any @eaDir folders.

ORIGINAL
= = =
function getSubAlbums($page=0, $sorttype=null, $sortdirection=null) {
if (is_null($this->subalbums) || $sorttype.$sortdirection !== $this->lastsubalbumsort ) {
$dirs = $this->loadFileNames(true);
$subalbums = array();

foreach ($dirs as $dir) {
$dir = $this->name . '/' . $dir;
$subalbums[] = $dir;
}
= = =

CHANGED VERSION
= = =
function getSubAlbums($page=0, $sorttype=null, $sortdirection=null) {
if (is_null($this->subalbums) || $sorttype.$sortdirection !== $this->lastsubalbumsort ) {
$dirs = $this->loadFileNames(true);
$subalbums = array();

foreach ($dirs as $dir) {
$targetstring = "eadir";
if(stristr($dir, $targetstring) === FALSE)
{
$dir = $this->name . '/' . $dir;
$subalbums[] = $dir;
}
}
= = =




lot of @eaDir Albums - acrylian - 2011-09-09

It should be noted that current Zenphoto releases actually do not have a getSubAlbums function/method anymore. It is just getAlbums() now.




lot of @eaDir Albums - sbillard - 2011-09-09

Also, not really a good idea to modify the core as you will have to keep making that change (and noticing things like acrylian mentions).

Much better to use the plugin to filter out those folders you do not want searched.




lot of @eaDir Albums - moelli73 - 2012-08-08

Hi,

I don´t get the file filter plugin to work with the curent release. Is there another way to filter out the eadir Files and Folder?

Thnaks




lot of @eaDir Albums - acrylian - 2012-08-08

Zenphoto should actually ignore all it does not recognize. However for deleting albums it might cause trouble.

I have no idea what "eaDir" files are but maybe tell your ftp client to not upload these at all?




lot of @eaDir Albums - moelli73 - 2012-08-08

Hi,

these files are generated by my Synology NAS, the @eadir files are normaly hidden cache files for the NAS operating system.




lot of @eaDir Albums - sbillard - 2012-08-08

I have updated the filter correcting the error in the options handling. Download it again and see if it does what you want.




lot of @eaDir Albums - smunozza - 2012-09-09

Hi,
I have the same problem with @eaDir in a Synology NAS. Are you suggesting the use of your extension "filter-file_searches"?
It only allows to select the Folders that are visible (or at level one). I cannot choose the @eaDir sub album

Am I doing something wrong?




lot of @eaDir Albums - sbillard - 2012-09-09

I really do not see how a folder can be visible to one part of Zenphoto and not another. Zenphoto uses the same fucntions everywhere to read file directories.

Of course, the plugin is only an example. You can simply make a version that filters out the @eaDir folders directly.




lot of @eaDir Albums - david1pro - 2022-09-26

I hate to resurrect an old thread, but this is still an issue. I can not see these files in Windows, even with view set to show hidden files. I can not view these files with Synology's file station. However, ZenPhoto sees these files, which it interprets as folders, EVERYWHERE. This causes non-real albums/galleries to populate my site. I tried the altering of the class-album.php as directed above, but they still show. I can not find a plug-in that involves filtering. Am I missing something?




lot of @eaDir Albums - acrylian - 2022-09-27

Sorry, I still cannot help with this, I have neither knowledge nor access (or ever had) to a Synology file station. I have no idea what a eaDir folder is and how it looks like at all… If it is a folder, Zenphoto will recognized it as such being file system based for the gallery part.Zenphoto is aimed to run on fairly standard web servers.

The plugin mentioned above is available here:
https://www.zenphoto.org/news/filter-file_searches/

It's old and unsupported so might not work anymore.