Log in

View Full Version : CHMOD Functionality


Jay
04-02-2003, 04:07 PM
Hello,

Would it be possible to have the option to CHMOD all files within a directory to the same value when you CHMOD the directory?

Would save people that spend a much time installing web scripts a great deal of time :)

Raccoon
04-02-2003, 04:15 PM
If I'm not mistaken, you generally have different permissions on files than you have on folders. I can't see why you would want to CHMOD all files to match the parent folder.

Just select all files in the current directory, and then CHMOD.

- Raccoon

Jay
04-02-2003, 04:23 PM
Files within a directory can easily be CHMODed to 777, 755, 644, etc ... just like the parent directory.

I am quite well aware of how to CHMOD all the files at once, but it would save me quite a bit of time if I could CHMOD the contents of a folder the same time as the folder itself, and I'm sure it would benefit others that install scripts as well.

Case in point: When I install an IPB, I have to CHMOD the following to 777

/archive_out/
/lang/
/lang/en/
(24 files)
/Skin/
/Skin/s1/
(23 files)
/uploads/

Now, as it is, it requires 5 CHMOD operations. With what I'm suggesting, it would only require CHMODing

/archive_out/
/lang/
/Skin/
/uploads/

With the new feature, it would only require 1 CHMOD to accomplish the same result, and this is only a simple script. Imagine a more complex one.

Raccoon
04-02-2003, 04:29 PM
I suppose it would be possible to do. Could probably piggy-back it on the same code the Delete function uses to clear out sub-files and folders before deleting the parent folder.

- Raccoon

bigstar
04-02-2003, 04:32 PM
Jay it's a great idea. In fact it's already on our to-do list :D

In the meantime you can use the FTP File Search, via the tools menu to search for the script files, select all right click and CHMOD them.

umm Raccoon :rolleyes:

Jay
04-02-2003, 04:34 PM
I'm sorry bigstar, I did check that topic in hopes of seeing it, but it must be worded in a way that I can't understand it, not being the FTP guru that you folks are :)

Raccoon
04-02-2003, 04:39 PM
Originally posted by bigstar
umm Raccoon :rolleyes:
:confused: Whaaat? Thats how I would do it anyway (piggyback delete func)

Sorry, forgot you could CHMOD in File Search results... can you forgive me bigstar?

- Raccoon

Shark
04-02-2003, 05:50 PM
Im sure you are forgiven Raccoon ... its just good to see you around :)