1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Does a subfolder exist?

Discussion in 'Support' started by rawood11, Oct 28, 2008.

  1. rawood11

    Joined:
    Oct 2, 2008
    Messages:
    19
    Likes Received:
    0
    iff %@filesize["m:\taqDAILYNBBO\%@substr[%x,16]"] == -1 then

    does -1 indicate that the folder does not exist?
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    10,092
    Likes Received:
    85
    Yes (0 means that the file(s) exist but are 0-length).
     
  3. logic

    Joined:
    May 30, 2008
    Messages:
    42
    Likes Received:
    0
    From: JP Software Forums [mailto:neil@jpsoft.com]
    Sent: Thursday, November 06, 2008 9:28 AM
    Subject: RE: [Support-t-593] Re: Does a subfolder exist?

    No! Not necessarily. A return value of -1 could mean that the folder exists
    but doesn't contain the specified file. Generally, it isn't possible to tell
    from %@FILESIZE whether the *folder* exists. Check out the ISDIR operator --

    iff isdir m:\taqDAILYNBBO then
    ...
    endiff

    Jonathan Gilbert
     

Share This Page