Special Characters In File Name...

Discussion in 'A-Parser Support Forum' started by scrapefun, Oct 17, 2017.

  1. scrapefun

    scrapefun A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Feb 24, 2015
    Messages:
    184
    Likes Received:
    34
    When using Net:Http parser and saving files with "\" in name like:

    This\Is An Example.html

    Instead of saving the full file name it will create a directory where the backslash is:

    Directory Named "This"\Is An Example.html


    Are there any other characters that would cause a directory to be created like this? Just want to make a list of characters to avoid in filename.

    Here is the code I'm using for results file:

    Code:
    [% IF p1.info.success == 1;
        IF query.lvl == 0;
            USE Math;
            dir = Math.int(query.num / 2000);
        ELSIF query.lvl == 1;
            dir = query.dir;
        END;
        'serp_raw/us_' _ dir _ '/' _ query.kw _ '.html';END %]
     
  2. Support Денис

    Support Денис A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Jun 12, 2017
    Messages:
    586
    Likes Received:
    185
    Hello. Avoid the name of the file \ and /
     
  3. scrapefun

    scrapefun A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Feb 24, 2015
    Messages:
    184
    Likes Received:
    34
    Thanks! I also discovered that ; in the filename also causes the issue
     

Share This Page