2010/8/2 João Cândido de Souza Neto
> Is there a way of getting the symbolic link's target when using
> DirectoryIterator?
>
as DirectoryIterator traverses the contents of a directory, the current()
method will return an SplFileInfo instance.
Using the SplFileInfo, you can determine if the entr
On Tue, Jan 26, 2010 at 10:01:12PM +0100, Kim Madsen wrote:
> Christoph Boget wrote on 26/01/2010 21:17:
>> I've looked through the docs but was unable to find out if this is
> possible;
>> I hope it is. Is there a way that you get the size/length of the
> collection
>> to be iterated (e.g. the t
On Tue, Jan 26, 2010 at 2:06 PM, Nathan Nobbe wrote:
> On Tue, Jan 26, 2010 at 2:05 PM, Christoph Boget wrote:
>
>> I executed the following test script several times. Each time, in a
>> separate terminal window, I ran "touch bob.txt" after the script started
>> echoing out. After the script com
On Tue, Jan 26, 2010 at 2:01 PM, Kim Madsen wrote:
> Christoph Boget wrote on 26/01/2010 21:17:
>
> I've looked through the docs but was unable to find out if this is
>> possible;
>> I hope it is. Is there a way that you get the size/length of the
>> collection
>> to be iterated (e.g. the total
On Tue, Jan 26, 2010 at 2:05 PM, Christoph Boget wrote:
> I executed the following test script several times. Each time, in a
> separate terminal window, I ran "touch bob.txt" after the script started
> echoing out. After the script completed, I deleted bob.txt. During each
> execution, not on
I executed the following test script several times. Each time, in a
separate terminal window, I ran "touch bob.txt" after the script started
echoing out. After the script completed, I deleted bob.txt. During each
execution, not once did bob.txt show up in the output. This makes me
believe that
Christoph Boget wrote on 26/01/2010 21:17:
I've looked through the docs but was unable to find out if this is possible;
I hope it is. Is there a way that you get the size/length of the collection
to be iterated (e.g. the total number of files) without having to iterate
through at least once?
O
>
> right but the collection is built during iteration.
>
So you're saying that if I add a file to the directory between the time I
instantiate the DirectoryIterator and the time I'm finished iterating
through, that file could be picked up? Or is the instance only going to
contain a list of files
On Tue, Jan 26, 2010 at 1:25 PM, Christoph Boget wrote:
> >
> > def not on DirectorIterator afaik, and furthermore, i dont think thats
> > supported at the shell / filesystem level even.
>
>
> Well if the Iterator has the whole of the collection in order to be able to
> iterate over it, I would t
On Tue, 2010-01-26 at 15:25 -0500, Christoph Boget wrote:
> >
> > def not on DirectorIterator afaik, and furthermore, i dont think thats
> > supported at the shell / filesystem level even.
>
>
> Well if the Iterator has the whole of the collection in order to be able to
> iterate over it, I woul
>
> def not on DirectorIterator afaik, and furthermore, i dont think thats
> supported at the shell / filesystem level even.
Well if the Iterator has the whole of the collection in order to be able to
iterate over it, I would think that it should be able to return the size of
that collection... :
On Tue, Jan 26, 2010 at 1:17 PM, Christoph Boget wrote:
> I've looked through the docs but was unable to find out if this is
> possible;
> I hope it is. Is there a way that you get the size/length of the
> collection
> to be iterated (e.g. the total number of files) without having to iterate
> t
12 matches
Mail list logo