mirror of
https://github.com/amix/vimrc
synced 2025-02-28 14:12:51 +08:00
Check for empty sources_non_forked_cache folder
This commit is contained in:
parent
92ee19d643
commit
22cbb862ee
@ -12,7 +12,7 @@ import tempfile
|
|||||||
import urllib.request
|
import urllib.request
|
||||||
import zipfile
|
import zipfile
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from os import path
|
from os import listdir, path
|
||||||
|
|
||||||
# --- Globals ----------------------------------------------
|
# --- Globals ----------------------------------------------
|
||||||
PLUGINS = """
|
PLUGINS = """
|
||||||
@ -105,7 +105,7 @@ def update(plugin):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
temp_directory = tempfile.mkdtemp()
|
temp_directory = tempfile.mkdtemp()
|
||||||
|
|
||||||
if not path.isdir(SOURCE_DIR):
|
if not path.isdir(SOURCE_DIR) or not listdir(SOURCE_DIR):
|
||||||
shutil.copytree(FALLBACK_SOURCE_DIR, SOURCE_DIR)
|
shutil.copytree(FALLBACK_SOURCE_DIR, SOURCE_DIR)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user