mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 19:05:32 -04:00
Update comments
This commit is contained in:
parent
ec25109fa5
commit
3f73591dd4
@ -72,12 +72,12 @@ class Title
|
|||||||
|
|
||||||
# Utility method used in library rescanning.
|
# Utility method used in library rescanning.
|
||||||
# - When the title does not exist on the file system anymore, return false
|
# - When the title does not exist on the file system anymore, return false
|
||||||
# and let it be deleted from the libaray instance
|
# and let it be deleted from the library instance
|
||||||
# - When the title exists, but its contents sigature is now different from
|
# - When the title exists, but its contents signature is now different from
|
||||||
# the cache, it means some of its content (nested titles or entries)
|
# the cache, it means some of its content (nested titles or entries)
|
||||||
# has been added, deleted, or renamed. In this case we update its
|
# has been added, deleted, or renamed. In this case we update its
|
||||||
# contents signature and instance variables
|
# contents signature and instance variables
|
||||||
# - When the title exists and its contents sigature is still the same, we
|
# - When the title exists and its contents signature is still the same, we
|
||||||
# return true so it can be reused without rescanning
|
# return true so it can be reused without rescanning
|
||||||
def examine(context : ExamineContext) : Bool
|
def examine(context : ExamineContext) : Bool
|
||||||
return false unless Dir.exists? @dir # No title, Remove this
|
return false unless Dir.exists? @dir # No title, Remove this
|
||||||
|
@ -428,9 +428,10 @@ class Storage
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Limit mark targets with given arguments
|
# Mark titles and entries that no longer exist on the file system as
|
||||||
# They should be checked again if they are really gone,
|
# unavailable. By supplying `id_candidates` and `titles_candidates`, it
|
||||||
# since they would be available which are renamed or moved
|
# only checks the existence of the candidate titles/entries to speed up
|
||||||
|
# the process.
|
||||||
def mark_unavailable(ids_candidates : Array(String)?,
|
def mark_unavailable(ids_candidates : Array(String)?,
|
||||||
titles_candidates : Array(String)?)
|
titles_candidates : Array(String)?)
|
||||||
MainFiber.run do
|
MainFiber.run do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user