Issue 115: os.path.dirname(os.path.normpath(path)) returns empty string for
path "."
http://code.google.com/p/robotframework/issues/detail?id=115
New issue report by SonOfLilit:
What steps will reproduce the problem?
1. Create a file a.txt in a directory under windows
2. Run OperatingSystem.Move File("a.txt", "b.txt") in same directory
What is the expected output? What do you see instead?
Success. Instead, "FAIL WindowsError: [Error 3] The system cannot find the
path specified: u''"
Please provide any additional information below.
The problem is caused by this line, that appears multiple times in the
source:
parent = os.path.dirname(os.path.normpath(destination))
A simple fix would be to change
if not os.path.exists(parent):
into
if parent and not os.path.exists(parent):
another fix that I haven't tested would be like in create_file:
parent = os.path.dirname(os.path.abspath(os.path.normpath(path)))
-- Aur
Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings