← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 562: Applied a patch from Emil that prevents duplicate files being imported if using a symbolic link t...

 

------------------------------------------------------------
revno: 562
fixes bug(s): https://launchpad.net/bugs/844152
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Thu 2011-09-08 21:40:59 +0100
message:
  Applied a patch from Emil that prevents duplicate files being imported if using a symbolic link to the file.
modified:
  openshot/classes/files.py


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/classes/files.py'
--- openshot/classes/files.py	2011-08-27 21:53:40 +0000
+++ openshot/classes/files.py	2011-09-08 20:40:59 +0000
@@ -466,7 +466,7 @@
 		
 		# don't add a file that is alrady in this folder (i.e. dupe check)
 		for item in self.items:
-			if file_name in item.name:
+			if os.path.samefile(file_name, item.name):
 				return True
 		
 		# didn't find a match