linktastic clenaup
This commit is contained in:
@@ -10,8 +10,8 @@ from couchpotato.core.plugins.base import Plugin
|
||||
from couchpotato.core.settings.model import Library, File, Profile, Release, \
|
||||
ReleaseInfo
|
||||
from couchpotato.environment import Env
|
||||
from linktastic.linktastic import link, symlink
|
||||
import errno
|
||||
import linktastic.linktastic as linktastic
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
@@ -521,9 +521,9 @@ Remove it if you want it to be renamed (again, or at least let it try again)
|
||||
dest = ss(dest)
|
||||
try:
|
||||
if self.conf('file_action') == 'hardlink':
|
||||
linktastic.link(old, dest)
|
||||
link(old, dest)
|
||||
elif self.conf('file_action') == 'symlink':
|
||||
linktastic.symlink(old, dest)
|
||||
symlink(old, dest)
|
||||
elif self.conf('file_action') == 'copy':
|
||||
shutil.copy(old, dest)
|
||||
else:
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
Linktastic
|
||||
|
||||
Linktastic is an extension of the os.link and os.symlink functionality provided
|
||||
by the python language since version 2. Python only supports file linking on
|
||||
*NIX-based systems, even though it is relatively simple to engineer a solution
|
||||
to utilize NTFS's built-in linking functionality. Linktastic attempts to unify
|
||||
linking on the windows platform with linking on *NIX-based systems.
|
||||
|
||||
Usage
|
||||
|
||||
Linktastic is a single python module and can be imported as such. Examples:
|
||||
|
||||
# Hard linking src to dest
|
||||
import linktastic
|
||||
linktastic.link(src, dest)
|
||||
|
||||
# Symlinking src to dest
|
||||
import linktastic
|
||||
linktastic.symlink(src, dest)
|
||||
@@ -1,13 +0,0 @@
|
||||
from distutils.core import setup
|
||||
|
||||
setup(
|
||||
name='Linktastic',
|
||||
version='0.1.0',
|
||||
author='Jon "Berkona" Monroe',
|
||||
author_email='solipsis.dev@gmail.com',
|
||||
py_modules=['linktastic'],
|
||||
url="http://github.com/berkona/linktastic",
|
||||
license='MIT License - See http://opensource.org/licenses/MIT for details',
|
||||
description='Truly platform-independent file linking',
|
||||
long_description=open('README.txt').read(),
|
||||
)
|
||||
Reference in New Issue
Block a user