Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
deleleDir() function
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 06/30/09 14:27 
Hi
I have a module that can delete bands. It does it by removing the DB band_info row. It works fine but I've just realised that it leaves the bands' /members, /media and /uploads folders behind, so I need to include the deleteDir() function in the module.

Question - The bands are on a cluster server. Do I have to specify that in the dir string, or will JR sort it all out? Ie. do I just do -

deleteDir("members/x");
deleteDir("media/x");
deleteDir("uploads/x");

Thanks
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 06/30/09 17:04 
What about the deleteArtist() function?

http://www.jamroom.net/Function_deleteArtist

Since it's a Jamroom function it's already cluster aware.


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 06/30/09 23:07 
That looks useful.

Its not listed in the Function Reference docs so I was unaware of it.

Thanks Kyle


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.