<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 07/03/2013 16:36, Ilkka Ollakka
      wrote:<br>
    </div>
    <blockquote cite="mid:20130307153633.GE2566@ileoo" type="cite">
      Hi,
      I noticed that you use is_file() call in that script. But you
      could just
      try is_dir() call to path to know directly if it's directory name
      and
      exists in probe().
      I don't really know the underlying implementation of that is_dir()
      (just
      spotted it from short googling) function and no idea if it does
      something unwanted.</blockquote>
    Not sure there is such a function in Lua about directory (except if
    we make an assumption about the file system) :<br>
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/1340230/check-if-directory-exists-in-lua">http://stackoverflow.com/questions/1340230/check-if-directory-exists-in-lua</a><br>
    The last post on the previous web page seems weird to me.<br>
    Having said that, maybe I didn't get your point.<br>
    <br>
    About <i>is_file()</i>, Rémi Denis-Courmont noticed to me it could
    raise some issues.<br>
    <blockquote>
      <pre wrap="">stat() MUST be used to check if a file exists and the file type MUST be 
checked. open()-then-close() is inefficient and prone to deadlock.</pre>
    </blockquote>
    <br>
    <blockquote cite="mid:20130307153633.GE2566@ileoo" type="cite">
      <pre wrap="">for example something like this
---
locale working_accesses = {file="true",directory="true"}
if( working_accesses[vlc.access] == nil ) then
    return false
end
---
Basicly return if access isn't in that table.
</pre>
    </blockquote>
    Yes you're right, I misread the README in playlist directory about
    vlc.access... >.<<br>
    New patch enclosed.<br>
  </body>
</html>