Comment 0 for bug 918165

Revision history for this message
Diego Sarmentero (diegosarmentero) wrote : Handle path_exists for links in a moore accurate way

* Currently we are checking if a path exists in windows just checking for the file name, and if it doesn't exists, add the .lnk extension at the end of the file and check again (to be consistent with the linux api where a link can has any or none extension), because windows requires the .lnk extension. The problem is that (in windows) if we just wanted to know if the folder "my-book" (without any extension) exists and it doesn't. but instead of that a shortcut named my-book.lnk exists, our function "path_exists" (in: u1-client/ubuntuone/platform/windows/os_helper.py > path_exists) is going to tell us that the folder exists when this is not real.