mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
removed deprecated checko for mtime!=None
This commit is contained in:
parent
35497ff696
commit
6993449602
1 changed files with 0 additions and 5 deletions
|
|
@ -73,11 +73,6 @@ class ImportAddedPlugin(BeetsPlugin):
|
||||||
"""Write the given mtime to an item's `mtime` field and to the mtime
|
"""Write the given mtime to an item's `mtime` field and to the mtime
|
||||||
of the item's file.
|
of the item's file.
|
||||||
"""
|
"""
|
||||||
if mtime is None:
|
|
||||||
self._log.warn(u"No mtime to be preserved for item '{0}'",
|
|
||||||
util.displayable_path(item.path))
|
|
||||||
return
|
|
||||||
|
|
||||||
# The file's mtime on disk must be in sync with the item's mtime
|
# The file's mtime on disk must be in sync with the item's mtime
|
||||||
self.write_file_mtime(util.syspath(item.path), mtime)
|
self.write_file_mtime(util.syspath(item.path), mtime)
|
||||||
item.mtime = mtime
|
item.mtime = mtime
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue