Thanks a lot for your answer, it really helped me get out of a sticky spot.
Part of the problem was I wasn't sure if I should have been using : or / in
between folder names.  The get root method answered those questions for me.
Thanks.

Also, I know the version of a4d I'm using isn't really supported anymore but
unfortunately I cannot upgrade right now.  This is a project being developed
by several companies at the same time and we are on a tight schedule so a
decision was made to not upgrade to anything that is marked as beta.
Hopefully I can upgrade next week when the initial phase of development on
this project is complete and we have some free time to do testing.


Thanks again,
Terrence

On 6/10/03 6:32 AM, "Aparajita Fishman" <[EMAIL PROTECTED]>
wrote:

>> No matter what I do, the document list() method just returns a zero
>> length array.  Here is some code I have been trying:
>> 
>> document list("/"; $files)
>> write(size of array($files))
>> 
>> I have tried everything I could think of for the first parameter of
>> this
>> method, everything returns an empty array.
> 
> It is critical that you understand how to specify paths in Active4D.
> 
> [The following is more or less copied and pasted from the documentation]
> 
> As in 4D, a path passed to a document command may be full or partial,
> also known as absolute and relative. In addition, the path may be
> native or URL-style.
> 
> If a path is native, it is considered a full path if it begins with a
> drive name and ends with either a directory name (for commands that
> take a directory) or a filename (for commands that take a filename). If
> the path is URL-style, it is considered a full path if it begins with
> �/�.
> 
> If a path is native, it is considered a partial path if it does not
> begin with a drive name. If a path is URL-style, it is considered a
> partial path if it does not begin with �/�.
> 
> A partial path is relative to the _default directory_. Under 4D
> Standalone or Server, the default directory is the current database
> directory (the one with the structure file). Under Client, the default
> directory is the Client application directory.
> 
> [end copy and paste]
> 
> Typically you would use a path like this:
> 
> document list(get root + "some_directory"; $files)
> 
> If you want to list a directory outside the web root, there is some
> other magic you must do. Please download the latest version of Active4D
> and consult the introduction to the "System Documents" section of the
> "Command Reference" and "Working With Paths" in the "Interpreter"
> chapter.
> 
> 
>> I am using OSX 10.2.6 and the latest stable release of Active 4d (not
>> the
>> betas).
> 
> Please don't use 2.0, it is no longer supported. If you go to my site
> you will see that 3.0 is now considered the latest stable release. It
> will be coming out of beta in the next release.
> 
> Regards,
> 
>   Aparajita
>   Victory-Heart Productions
>   [EMAIL PROTECTED]
>   www.aparajitaworld.com
> 
>   "If you dare to fail, you are bound to succeed."
>   - Sri Chinmoy   |   www.srichinmoylibrary.com
> 
> _______________________________________________
> Active4d-dev mailing list
> [EMAIL PROTECTED]
> http://aparajitaworld.com/mailman/listinfo/active4d-dev
> 

--
Terrence Curran
Approaching Pi, Inc.
www.approachingpi.com
[EMAIL PROTECTED]
mobile: (617) 605-9476
fax:    (617) 812-7910


Reply via email to