directory only visible in filemanager

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
clapczyn
Forum Members
Forum Members
Posts: 59
Joined: Tue Oct 27, 2009 2:00 pm

directory only visible in filemanager

Post by clapczyn »

Hi,

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);
}
funny think I can not explain is, that the folder is created and visible in filemanager but not in my ftp-client.
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
Post Reply

Return to “Modules/Add-Ons”