Permalink
Browse files

symlinks don't work on windows

  • Loading branch information...
1 parent e3e5c57 commit e8f95bc2ef95b44b3d22d2725bf39d2813bd2dc7 @wchristian wchristian committed Dec 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Net/LastFMAPI.pm
@@ -29,10 +29,10 @@ our $sk_symlink = my_home()."/.net-lastfmapi-sessionkey";
sub load_save_sessionkey { # see get_session_key()
my $key = shift;
if ($key) {
- symlink($key, $sk_symlink)
+ write_file($sk_symlink, $key);
}
else {
- $key = readlink($sk_symlink);
+ $key = eval{ read_file($sk_symlink) };
}
$session_key = $key;
}

0 comments on commit e8f95bc

Please sign in to comment.