Sun Oct 24, 2021 12:28 am
Login Register Lost Password? Contact Us


STD vs lib_fileservices

Topics specific to the use of the ECL IDE

Tue Jan 27, 2015 7:51 pm Change Time Zone

Hello,

The code I am looking at calls FileServices.RemoteDirectory.

In class I was introduced to the STD libraries. Now on the Alpha_Dev_Thor repository I find no STD library. However, I have found lib_fileservices. It does have a FileServices.RemoteDirectory.

Question 1: Why don't I see a STD library? Is this only with the Version 5?

In the documentation there is a STD.RemoteDirectory. It is like this:
STD.File.RemoteDirectory( machineIP, directory [ , mask ][ , includesubs ] )

In lib_fileservices there is the following:
dataset(FsFilenameRecord) RemoteDirectory(const varstring machineIP,const varstring dir,const varstring mask='*',boolean sub=false) : c,entrypoint='fsRemoteDirectory';

Question 2. Is this the same thing? It looks very similar, but appears to be calling a .so program if I am reading the documentation properly. If not, where is the STD library?

Thanks,
Don Baggett
georgeb2d
 
Posts: 93
Joined: Wed Dec 24, 2014 3:36 pm

Tue Jan 27, 2015 8:08 pm Change Time Zone

Don,
Question 1: Why don't I see a STD library?
The Standard Library is only in Open Source environments, not legacy pre-OSS environments.

Our ECL classes are taught using Open Source environments because the legacy system is deprecated and will be discontinued at some point.
Question 2. Is this the same thing?
Yes, it is the same function.

HTH,

Richard
rtaylor
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 1600
Joined: Wed Oct 26, 2011 7:40 pm

Tue Jan 27, 2015 9:29 pm Change Time Zone

Thanks for your quick and informative response.

Don
georgeb2d
 
Posts: 93
Joined: Wed Dec 24, 2014 3:36 pm


Return to ECL IDE

Who is online

Users browsing this forum: No registered users and 1 guest

cron