2020-10-10 14:16:11 +02:00
|
|
|
# typed: strict
|
2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-11-22 10:49:41 -08:00
|
|
|
class Cleaner
|
|
|
|
private
|
|
|
|
|
2020-10-28 18:49:10 +11:00
|
|
|
sig { params(path: Pathname).returns(T.nilable(T::Boolean)) }
|
2017-11-22 10:49:41 -08:00
|
|
|
def executable_path?(path)
|
|
|
|
path.elf? || path.text_executable?
|
|
|
|
end
|
|
|
|
end
|