obi458 commented on issue #732: MacOS and time machine
URL: https://github.com/apache/couchdb/issues/732#issuecomment-319428906
 
 
   Here is my temporarily workaround!
   
   abs_path(Path0) ->
       % if we get an error use abs_path2
       case file:read_link_info(Path0) of
           {ok, Info} -> case Info#file_info.type of
                             symlink ->
                                 {ok, Path} = file:read_link(Path0),
                                 abs_path(Path);
                             _ ->
                                 abs_path2(Path0)
                         end;
           {error,_Reason} -> abs_path2(Path0)
       end.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to