modified vlc-check-directory