Merge pull request #1358 from rwilson504/overwrite
More consistent download experience for overwrite
This commit is contained in:
Коммит
c5bd64f65e
|
@ -174,6 +174,7 @@ Arguments
|
|||
--cid -c : The custom connector ID.
|
||||
--dest -d : Destination directory.
|
||||
--env -e : Power Platform environment ID.
|
||||
--overwrite -w : Overwrite all the existing connector and settings files.
|
||||
--pau -u : Power Platform URL.
|
||||
--pav -v : Power Platform API version.
|
||||
--settings -s : A settings file containing required parameters.
|
||||
|
|
|
@ -47,10 +47,7 @@ def _prepare_directory(destination, connector_id):
|
|||
# Create a sub-directory in the current directory
|
||||
# when a destination isn't provided
|
||||
else:
|
||||
if os.path.isdir(connector_id):
|
||||
error = '{} directory already exists. Please remove the directory before continuing.'
|
||||
raise CLIError(error.format(connector_id))
|
||||
else:
|
||||
if not os.path.isdir(connector_id):
|
||||
os.mkdir(connector_id)
|
||||
destination = connector_id
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче