Skip to content

Symlink: Added support for hardlinking files and dirs#1898

Merged
cvium merged 18 commits intodevelopfrom
hardlink
Jul 24, 2017
Merged

Symlink: Added support for hardlinking files and dirs#1898
cvium merged 18 commits intodevelopfrom
hardlink

Conversation

@cvium
Copy link
Copy Markdown
Contributor

@cvium cvium commented Jul 23, 2017

Motivation for changes:

I like softlinks but Plex doesn't

Detailed changes:

  • Changed Symlink plugin to take a 'type' param ('soft' or 'hard').

except OSError as e:
log.debug('Failed to create hardlink for file %s: %s', f, e)
if existing == 'fail':
raise # reraise to fail the entry in the calling function
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe raise PluginError?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dunno, failing the entry feels more appropriate

@cvium cvium merged commit 7002579 into develop Jul 24, 2017
@cvium cvium deleted the hardlink branch July 24, 2017 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants