SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Mar 2001
    Location
    Durham, NC
    Posts
    105
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Does WR have a file_exists function

    If my web app. stores a file on a file server, can WR check the file server to make sure it exists?

    Scott

  2. #2
    Senior Member
    Join Date
    Dec 2000
    Posts
    221
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Does WR have a file_exists function

    Get the csolib complied module from Mercury - it contains a 'file_exists' function.

    (Description: Verifies that the file or directory exists\nand there is read access)

    'Automatrix'

  3. #3
    Senior Member
    Join Date
    Mar 2001
    Location
    Durham, NC
    Posts
    105
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Does WR have a file_exists function

    Thank you Automatrix.

  4. #4
    Junior Member
    Join Date
    Mar 2001
    Location
    Cambridge, MA USA
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Does WR have a file_exists function

    You may also want to look at the cso2 function library which includes the function "findfile" which will return the path to a specific file, starting its search from the specified root (it will search ALL subdirectories within the root). There is also a get_file_creation_date and get_file_creation_time function which may be of use to you

    ------------------

  5. #5
    Moderator Joe Strazzere's Avatar
    Join Date
    May 2000
    Location
    USA
    Posts
    13,170
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Does WR have a file_exists function

    You may be able to get away with something like this:

    if (file_open(expected_file, FO_MODE_READ) != E_OK)
    {
    FM_ReportMsg ("File does not exist", 1);
    }
    else
    {
    FM_ReportMsg ("File exists", 1);
    file_close(expected_file);
    }


    -joe
    Joe Strazzere
    Visit my website: AllThingsQuality.com to learn more about quality, testing, and QA!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:13 PM.

Copyright BetaSoft Inc.