[vlc-devel] [PATCH 5/6] don't add / if dir ="" (allows drive listing on windows)
Rémi Denis-Courmont
remi at remlab.net
Wed Sep 28 14:35:25 CEST 2011
Sounds like a bug somewhere else. vlc_opendir("\\") is supposed to work.
On Wed, 28 Sep 2011 13:05:17 +0100, Rob Jonson <rob at hobbyistsoftware.com>
wrote:
> ---
> share/lua/intf/modules/httprequests.lua | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/share/lua/intf/modules/httprequests.lua
> b/share/lua/intf/modules/httprequests.lua
> index bbef569..d727e16 100644
> --- a/share/lua/intf/modules/httprequests.lua
> +++ b/share/lua/intf/modules/httprequests.lua
> @@ -353,7 +353,10 @@ getbrowsetable = function ()
>
> if dir then
> if dir == "~" then dir = vlc.misc.homedir() end
> - dir = common.realpath(dir.."/")
> + if dir~="" then
> + dir = common.realpath(dir.."/")
> + end
> +
> local d = vlc.net.opendir(dir)
> table.sort(d)
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list