Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / InetMatchName & files containing spaces

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. InetMatchName & files containing spaces
#13624
Posted by: DougA 2012-11-13 01:16:08
I have the following code in my program to debug this issue, and what I discovered is when the file I'm doing a MatchName on contains spaces, and the file exists, the function is returning 'DONE'   --  Which means 'file not found'

Files that do not contain spaces work fine (and the size test in the middle runs as expected)
If the file requested truely does not exist, DONE is also returned (correctly)

the web host is linux by the way.   A GoDaddy host account.


  Web_FN = 'filename with spaces'
  Drop DirList
  err = InetMatchName('DirList',Web_FN,"RELOAD|ONE")
  If err == '' then do
    If exists('DirList') then do                       /* file exists on web site */
       If DirList.0 = Web_FN_size                      /* verify it's size */
          then ConSay(con1,'File exists & size matches')
          else ConSay(con1,Web_FN_size  DirList.0  '<----   size error')
       Return                                        
    end
    else ConSay(con1,'InetMatchName err='' but DirList does not exist')
  end
  else If err \= 'DONE' then ConSay(con1,'Web_Upload InetMatchName error:' err)
                        else ConSay(con1, err)        /* DONE - file not found */
Doug
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥410.00 ·
 
 
¥1,015.00 ·
 
 
¥470.00 ·
 
 
¥296.00 ·
 
 
¥410.00 ·
 
 
¥387.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0