On 3/31/14, 2:28pm, Bob Hood wrote:
>> Second: can I change permissions of a directory?
>
> Well, under UN*X-based systems, the permission changing should work as you
> expect with setPermissions() (assuming you have sufficient rights). Under
> Windows, though, it probably won't. Windows uses a d
On 3/31/14, 6:51pm, Thiago Macieira wrote:
> Em seg 31 mar 2014, às 13:03:28, Sensei escreveu:
>> I am trying to figure out how to change permissions "recursively" of
>> every item in a directory.
>
> Don't use QDir. Use QDirIterator.
>
> Not only is it more efficient, it also has an option to recu
>
> Don't use QDir. Use QDirIterator.
>
> Not only is it more efficient, it also has an option to recurse.
Aaarrgghh since ancient times I used QDir. And now you tell
about QDirIterator. A check... available since Qt 4.3. I totally
overlooked this one.
But it seems I am not the only one.
Em seg 31 mar 2014, às 13:03:28, Sensei escreveu:
> I am trying to figure out how to change permissions "recursively" of
> every item in a directory.
Don't use QDir. Use QDirIterator.
Not only is it more efficient, it also has an option to recurse.
--
Thiago Macieira - thiago.macieira (AT) int
On 3/31/2014 5:03 AM, Sensei wrote:
> First: the code won't work and stops after descending into the target
> directory... and I cannot figure out why!
You're going to need to set some additional flags on your call to
entryInfoList():
QFileInfoList list = d.entryInfoList(filters,
QDir::File
Dear all,
I am trying to figure out how to change permissions "recursively" of
every item in a directory.
I've tried the code below but I found that I have two problems.
First: the code won't work and stops after descending into the target
directory... and I cannot figure out why!
Second: can