Mhh, is sufficient with doing the split out of the while<br><br>Gonzalo<br><br><br>[gonzalo@nautilus journal]$ git diff model.py <br>diff --git a/src/jarabe/journal/model.py b/src/jarabe/journal/model.py<br>index 81ca7d4..a422f6b 100644<br>
--- a/src/jarabe/journal/model.py<br>+++ b/src/jarabe/journal/model.py<br>@@ -528,9 +528,9 @@ def _get_file_name(title, mime_type):<br> <br> def _get_unique_file_name(mount_point, file_name):<br>     if os.path.exists(os.path.join(mount_point, file_name)):<br>
+        name, extension = os.path.splitext(file_name)<br>         i = 1<br>         while len(file_name) <= 255:<br>-            name, extension = os.path.splitext(file_name)<br>             file_name = name + '_' + str(i) + extension<br>
             if not os.path.exists(os.path.join(mount_point, file_name)):<br>                 break<br><br>