mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-14 23:11:42 +00:00
no vincular si el archivo ya existe #213
por ejemplo git lfs rompe los links duros
This commit is contained in:
parent
0ee6d5a2ab
commit
dce75d6d6c
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ class MetadataFile < MetadataTemplate
|
|||
#
|
||||
# @return [Boolean]
|
||||
def hardlink
|
||||
return true if hardlink?
|
||||
return if hardlink?
|
||||
return if File.exist? destination_path
|
||||
|
||||
FileUtils.mkdir_p(File.dirname(destination_path))
|
||||
FileUtils.ln(uploaded_path, destination_path).zero?
|
||||
|
|
Loading…
Reference in a new issue