Handle path_exists for links in a more accurate way

Bug #918165 reported by Diego Sarmentero
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Triaged
Medium
Brian Curtin

Bug Description

Currently, we are checking if a path exists in windows just checking for the file name, and if it doesn't exists, we 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 the result is (kinda) not real.

The main issue is that in Linux you can't have both a file or a dir and a link with the same name, and in windows you can (if you ignore extensions).

summary: - Handle path_exists for links in a moore accurate way
+ Handle path_exists for links in a more accurate way
description: updated
description: updated
Changed in ubuntuone-client:
status: New → Triaged
assignee: nobody → Brian Curtin (brian.curtin)
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.