I'm using CGCalendar to create and display events.
Events can have multiple files attached, but the module doesn't support the creation of folders for each event (like news module does)
So I've created a UDT that fires when a new event is added to create a folder named by the events id.
Code: Select all
$event_path = $params['event_id'];
$event_dir = cms_join_path($config['uploads_path'], 'Events' ,$event_path);
if (!file_exists($event_dir)){
mkdir($destdir, 0777, true);
}
When I create a folder with the same name via ftp filemanager shows both folders, ftp-client shows only the one created there.
I've checked permissions and owner – everything is identical!!!
Hidden files are shown by the client so that can't be the problem either …
I just can't find the problem – maybe someone can point me in the right direction?
Thx