You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugin/idg/metadata.txt
+4-4
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ description[fr]=Plugin fournissant un accès simple aux données de différentes
7
7
about=Plugin providing easy access to data from different Spatial Data Infrastructures
8
8
about[fr]=Plugin fournissant un accès simple aux données de différentes Infrastructures de Données Géographiques DataGrandEst, Géo2France, GeoBretagne et OPenIG
"""Download a file from a remote web server accessible through HTTP.
61
+
62
+
:param remote_url: remote URL
63
+
:type remote_url: str
64
+
:param local_path: path to the local file
65
+
:type local_path: str
66
+
:return: output path
67
+
:rtype: str
68
+
"""
69
+
70
+
defdlCompleted():
71
+
self.log(message=f"Download of {remote_url} to {local_path} succeedeed", log_level=3)
72
+
copy(local_path+'_tmp', local_path)
73
+
remove(local_path+'_tmp')
74
+
75
+
self.log(
76
+
message=f"Downloading file from {remote_url} to {local_path}", log_level=4
77
+
)
78
+
# download it
79
+
loop=QEventLoop()
80
+
file_downloader=QgsFileDownloader(
81
+
url=QUrl(remote_url ), outputFileName=local_path+'_tmp', delayStart=True# Le téléchargement se fait dans un fichier temporaire, pour garder l'ancien fichier en cas d'échec
0 commit comments