[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: IFS folder listing



Like so much else which is irrational on a PC - you need to ask Microsoft.  


Less irrationally - if you remember how DOS files are laid down to disk, you will recall that these two entries form part of the file system.  They have nothing to do with an i Series.   But being a good citizen, IBM have to follow the 'standard' laid down for that type of disk formatting.   

Just don't get me started about how Mickeysoft implemented 'long file names' 


Lets just say we should all be grateful that IBM injected some sense with OS/2 and HPFS


 

 

> -----Original Message-----
> From: Mohamed Musthafa Safarulla
> [mailto:mohamedmusthafa.safarulla@xxxxxxxxx]
> Sent: 15 January 2010 15:03
> To: HTTPAPI and FTPAPI Projects
> Subject: Re: IFS folder listing
> 
> I do ignore those values.
> 
> I do agree, if you try from DOS you can see those directories. What it
> signifies, just trying to understand.
> 
> Thanks,
> Musthafa
> 
> On Fri, Jan 15, 2010 at 8:51 AM, Rick Connor <rconnor@xxxxxxxxxxxxx>
> wrote:
> 
> > The program returns a directory listing. The directory listing contains
> > . and .. because those are in the directory.
> >
> > If you don't need them simply ignore them.
> >
> > C                   Dow       p_entry <> *NULL
> > C                   Eval      wFileName =
> > C                             %subst(wdEntry.d_name:1:wdEntry.d_nameLen)
> >
> >  * Don't include directory values
> > C                   If        wFileName <> '.' and
> > C                             wFileName <> '..'
> > C                   Endif
> >
> > C                   Eval      p_entry = readdir(dirh)
> > C                   Enddo
> >
> >
> > -----Original Message-----
> > From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mohamed
> > Musthafa Safarulla
> > Sent: Friday, January 15, 2010 9:29 AM
> > To: HTTPAPI and FTPAPI Projects
> > Subject: Re: IFS folder listing
> >
> > Thanks Rick but why do we really need that . and ..?
> >
> > Thanks,
> > Musthafa
> >
> > On Thu, Jan 14, 2010 at 4:58 PM, Rick Connor <rconnor@xxxxxxxxxxxxx>
> > wrote:
> >
> > > There are two "special" entries inside each directory, as well. They
> > are
> > > "." (a single dot) and ".." (two dots). These
> > > signify the "current directory" and the "parent directory"
> > respectively.
> > >
> > > -----Original Message-----
> > > From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> > > [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mohamed
> > > Musthafa Safarulla
> > > Sent: Thursday, January 14, 2010 5:29 PM
> > > To: HTTPAPI and FTPAPI Projects
> > > Subject: IFS folder listing
> > >
> > > I want directory listing of an IFS folder , I got the sample program
> > > from
> > >
> > > http://www.scottklement.com/rpg/ifs_ebook/ifs_ebook.pdf  page 81
> > >
> > > The program is like
> > >
> > >  dir = OpenDir('/customer');
> > >  p_dirent = readdir(dir);
> > >  Dow p_dirent <> *NULL;
> > >   Msg = %subst(d_name:1:d_namelen);
> > >   p_dirent = readdir(dir);
> > >  EndDo;
> > >  CloseDir(dir);
> > >  *InLR = *On;
> > >
> > > The file listing is coming perfect but i have extra entries in the
> > > listing
> > > like
> > > "." and ".."
> > >
> > > No idea, what it is. Any pointers? Please
> > >
> > > --
> > > Thanks,
> > > Musthafa
> > >
> > -----------------------------------------------------------------------
> > > This is the FTPAPI mailing list.  To unsubscribe, please go to:
> > > http://www.scottklement.com/mailman/listinfo/ftpapi
> > >
> > -----------------------------------------------------------------------
> > >
> >
> >
> >
> > --
> > Thanks,
> > Musthafa
> > -----------------------------------------------------------------------
> > This is the FTPAPI mailing list.  To unsubscribe, please go to:
> > http://www.scottklement.com/mailman/listinfo/ftpapi
> > -----------------------------------------------------------------------
> >
> 
> 
> 
> --
> Thanks,
> Musthafa

This document may contain confidential information intended for the addressee only. Any views or opinions presented do not necessarily represent those of Newcastle Building Society or its subsidiary companies, hereinafter referred to as NBS Group.

If you are not the intended recipient, any disclosure, copying, or reliance upon this E-mail is prohibited. If you have received this document in error, please notify the sender so that NBS Group may arrange for its proper delivery. All e-mails are scanned for viruses and other unacceptable content, which may result in non-delivery of a small proportion of e-mails. Anyone sending urgent/important e-mails should therefore confirm delivery.

NBS Group does not enter into contracts by means of Internet or e-mail and staff are not authorised to enter into contracts in this way. 
 
Newcastle Building Society introduces to Newcastle Financial Services Limited (NFSL).  NFSL is an appointed representative of Openwork Limited, which is authorised and regulated by the FSA. Newcastle Building Society is authorised and regulated by the Financial Services Authority (www.fsa.gov.uk/register/) and is entered in the Financial Services Authority Register under Registration No. 156058.

Web site: www.newcastle.co.uk
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------