def populateSupportingFromGit(vpn_provider):
# Copy all files from download to the directory that are not .ovpn, ignoring the metadata
try:
filelist = getDownloadList(vpn_provider, "*")
debugTrace("Copying supporting files into addon directory for " + vpn_provider)
for file in filelist:
if not file.endswith(".ovpn") and not file.endswith("METADATA.txt"):
name = os.path.basename(file)
fullname = getAddonPath(True, vpn_provider + "/" + name)
xbmcvfs.copy(file, fullname)
if not xbmcvfs.exists(fullname): raise IOError('Failed to copy supporting file ' + file + " to " + fullname)
return True
except Exception as e:
errorTrace("vpnproviders.py", "Can't copy " + file + " for VPN " + vpn_provider)
errorTrace("vpnproviders.py", str(e))
return False
评论列表
文章目录