Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Development and Darwin (http://www.mac-forums.com/forums/os-x-development-darwin/)
-   -   How to get permissisions to remove directory in Mac OS X? (http://www.mac-forums.com/forums/os-x-development-darwin/123677-how-get-permissisions-remove-directory-mac-os-x.html)

neha 09-16-2008 03:13 AM

How to get permissisions to remove directory in Mac OS X?
 
Hi all

I am working on QT4.4 on my mac intel 10.4.11 machine..

I am trying to remove directories recursively using Qt4.4 , but some of the dirs are still left, i dont understand why, whether they dont have permissions or something else, and also not able to remove the root dir, infact i m login as a root user.....who have all rights and permissions

The piece of code is working fine for WINDOWS...I dont understand the reason why its not working in MAC.

Pls help, if anybody is having any idea about this...., I wil be really greatful to u all

regards
neha:)

Dysfunction 09-16-2008 12:19 PM

what errors are you getting?

rman 09-16-2008 03:49 PM

and what directory/folders are you trying to remove?

neha 09-17-2008 12:56 AM

Thanks for all replies, Problem is solved.
i am trying to remove empty folders, but the folders are not empty, they contain some hidden files that are generated by the MAC, now i am removing first that hidden files and after that empty folders........Sorry i thought i dont hav permissions.

Regards
neha

Dysfunction 09-17-2008 01:43 AM

rm -Rf will do that too :)

rman 09-17-2008 03:50 PM

Quote:

Originally Posted by Dysfunction (Post 727230)
rm -Rf will do that too :)

Or as Dysfunction suggested with the i option as in:

rm -irf

Dysfunction 09-17-2008 04:18 PM

Yes, interactive can be handy.. not so much for automated processes though :)


All times are GMT -4. The time now is 08:02 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.