Refactored Links::link implementation #2

Merged
cafkafk merged 1 commit from dev into main 2023-06-11 12:58:50 +02:00
cafkafk commented 2023-06-11 12:58:20 +02:00 (Migrated from github.com)

Refactored Links::link implementation to be able to deal with several possible scenarios:

  • file already linked (happy case)
  • link to different file exists
  • non link file exists
  • broken symlink exists
  • no file exists (happy case)
  • generic failure

Also attempted to make the code more readable than previous attempt. Admittedly, still needs some work.

Refactored Links::link implementation to be able to deal with several possible scenarios: - file already linked (happy case) - link to different file exists - non link file exists - broken symlink exists - no file exists (happy case) - generic failure Also attempted to make the code more readable than previous attempt. Admittedly, still needs some work.
Sign in to join this conversation.
No description provided.