Author |
Message |
epctechno
Joined: 10 May 2008 Posts: 12
|
Posted: Thu Jul 10, 2008 11:21 am Post subject: Can IPF do recurrsive Permissions? |
|
|
Where if I wanted to chmod everything 777 from one folder on?
chmod -R 777 themes/
Can we do this within IPF at all? If not I have a long ways to go  |
|
Back to top |
|
 |
liaison ionCube Support
Joined: 16 Dec 2004 Posts: 2788
|
Posted: Thu Jul 10, 2008 7:41 pm Post subject: |
|
|
Unfortunately not, and that is a good idea. The pfs project files are plain text though, and it would be easy to run find on your themes directory/folder to print out the names of the files, redirect that to a file, tidy it up if necessary in an editor and then insert into the correct place in the pfs file. Should take less than 5 mins. Depending on how you are with shell scripting and Unix filter commands, you could knock up a shell script to automatically do the find and update the pfs file with the file list so that you could just run the shell script if you needed to update the list in the pfs file. For fairly complex edits where you wants to replace parts of a file with text from elsewhere and perhaps make other edits I like to use emacs or xemacs in batch mode with a macro that I'd recorded and call that from a script, but you can do this kind of thing with sed, awk etc. Or use a PHP script to do it. _________________ Community Admin |
|
Back to top |
|
 |
epctechno
Joined: 10 May 2008 Posts: 12
|
Posted: Thu Jul 10, 2008 8:56 pm Post subject: |
|
|
Yeah it's what I did with sed and awk last night, I found it easier that way until you throw something in there for Windows GUI tool. Basically I would recommend you to throwing that option in there let's say:
themes/* = Would mean all of themes/ and below will be recurrsively chmod to whatever value the user inputs for permissions.
However I'm loving this tool already for what I have done on a new venture/project. |
|
Back to top |
|
 |
|