+ } else {
+ /* we have to cache this, the structs are lost in deletcurdir*/
+ /* but we need the positive returncode to send our event */
+ char dname[256];
+ strncpy(dname, curdir->d_u_name, 255 );
+ if ((rc = deletecurdir(vol)) == AFP_OK)
+ fce_register_delete_dir(dname);
+ }