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

Re: IFS folder listing



   UNIX is the same way. Well...not about the long file names, but
   certainly about the '.' and '..'. This has been around for 30 (?)
   years.

   On Fri, Jan 15, 2010 at 10:29 AM, Richard Wilson
   <[1]Richard.Wilson@xxxxxxxxxxxxxxx> wrote:

     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:[2]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
     <[3]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: [4]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     > > [mailto:[5]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
     <[6]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: [7]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     > > > [mailto:[8]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
     > > >
     > > > [9]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:
     > > > [10]http://www.scottklement.com/mailman/listinfo/ftpapi
     > > >
     > >
     -------------------------------------------------------------------
     ----
     > > >
     > >
     > >
     > >
     > > --
     > > Thanks,
     > > Musthafa
     > >
     -------------------------------------------------------------------
     ----
     > > This is the FTPAPI mailing list.  To unsubscribe, please go to:
     > > [11]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 ([12]www.fsa.gov.uk/register/) and is
     entered in the Financial Services Authority Register under
     Registration No. 156058.
     Web site: [13]www.newcastle.co.uk
     -------------------------------------------------------------------
     ----
     This is the FTPAPI mailing list.  To unsubscribe, please go to:
     [14]http://www.scottklement.com/mailman/listinfo/ftpapi
     -------------------------------------------------------------------
     ----

References

   1. mailto:Richard.Wilson@xxxxxxxxxxxxxxx
   2. mailto:mohamedmusthafa.safarulla@xxxxxxxxx
   3. mailto:rconnor@xxxxxxxxxxxxx
   4. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   5. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   6. mailto:rconnor@xxxxxxxxxxxxx
   7. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   8. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   9. http://www.scottklement.com/rpg/ifs_ebook/ifs_ebook.pdf
  10. http://www.scottklement.com/mailman/listinfo/ftpapi
  11. http://www.scottklement.com/mailman/listinfo/ftpapi
  12. http://www.fsa.gov.uk/register/
  13. http://www.newcastle.co.uk/
  14. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------