Incorrect File Path on a Windows Host
Symptoms
When the action Delete Files is run on a Windows host, the error message "stderr": "Remove-Item : A positional parameter cannot be found that accepts argument 'est\r\n1'. is displayed.
Cause Analysis
Ansible is used when deleting a file. The Windows path incorrectly contains a backslash (\) instead of a forward slash (/).
Solution
Check whether the file path is correct. If the file path is a Windows path, ensure that the path contains forward slashes (/).
Deleting a File FAQs
- Cannot Delete Files on a Linux Host
- File Path Does Not Exist on a Windows Host
- Incorrect File Path on a Windows Host
- Application Deployment Interruption
- Insufficient Permissions
- Parameters Contain Backslashes (\)
- No Host Exists in the Environment.
- Environment Does Not Exist.
- Failed to Deploy an Application on a Windows Host
- Error Occurs During Application Deployment with the sudo Privileges
- Deployment Blocked by Third-Party Antivirus Software
- Invalid Path
- A Network Error Occurs During Software Installation on CentOS
- A Network Error Occurs During Software Installation on Ubuntu OS
- Windows Path Not Allowed on a Linux Host
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore