|
@@ -59,7 +59,7 @@ def add_bookmarks(paths, config_path=None): |
|
|
config = _load_config_file(config_path) |
|
|
config = _load_config_file(config_path) |
|
|
added, exists = [], [] |
|
|
added, exists = [], [] |
|
|
for path in paths: |
|
|
for path in paths: |
|
|
path = os.path.abspath(path) |
|
|
|
|
|
|
|
|
path = os.path.normcase(os.path.abspath(path)) |
|
|
if path in config: |
|
|
if path in config: |
|
|
exists.append(path) |
|
|
exists.append(path) |
|
|
else: |
|
|
else: |
|
@@ -83,7 +83,7 @@ def delete_bookmarks(paths, config_path=None): |
|
|
deleted, notmarked = [], [] |
|
|
deleted, notmarked = [], [] |
|
|
if config: |
|
|
if config: |
|
|
for path in paths: |
|
|
for path in paths: |
|
|
path = os.path.abspath(path) |
|
|
|
|
|
|
|
|
path = os.path.normcase(os.path.abspath(path)) |
|
|
if path in config: |
|
|
if path in config: |
|
|
config.remove(path) |
|
|
config.remove(path) |
|
|
deleted.append(path) |
|
|
deleted.append(path) |
|
|