Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

FIles Region root dir?

Viki
Anonymous
2012-08-02
2013-04-17

  • Anonymous
    2012-08-02

    I just tested the FILES region and am a bit puzzled how to make this work as expected:

    If i use the snippet below from the docs..

    #Files glob=*.viki types=f <<

    It always lists viki files in my home directory, not the root of the interwiki i'm in, or the directory the current file is in.
    Is this intended?

     
  • Tom Link
    Tom Link
    2012-08-13

    The glob() function is run in the current directory. You usage assumed setting the autochdir option. If you don't want to use this option, try the following line instead:

    #Files glob=%:p:h/*.viki types=f <<

    Please let me know if this still doesn't work. (E.g. the indentation could be a little weird.)