Is there one way to detect if directory / file / symlink / etc. entity (more generalized) exists?
I need one function because I need to check an array of paths, which can be directories, files or symbolic links. I know that File.exists?"file_path" works for directories and files, but not for symbolic links (is it File.symlink?"symlink_path" ).
ruby file directory exists symlink
Clawsy Feb 04 2018-11-11T00: 00Z
source share