2016-08-18 22:11:42 +03:00
|
|
|
module FileHelper
|
2016-10-22 00:48:30 +02:00
|
|
|
module_function
|
2016-08-18 22:11:42 +03:00
|
|
|
|
2016-10-22 00:48:30 +02:00
|
|
|
def valid_alias?(candidate)
|
|
|
|
return false unless candidate.symlink?
|
|
|
|
candidate.readlink.exist?
|
2016-08-18 22:11:42 +03:00
|
|
|
end
|
|
|
|
end
|