mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-27 04:26:22 +00:00
resiliciencia
This commit is contained in:
parent
263394baef
commit
47756e5b46
1 changed files with 7 additions and 0 deletions
|
@ -121,6 +121,13 @@ class MetadataFile < MetadataTemplate
|
||||||
# @return [Pathname]
|
# @return [Pathname]
|
||||||
def destination_path_with_filename
|
def destination_path_with_filename
|
||||||
destination_path.realpath
|
destination_path.realpath
|
||||||
|
# Si el archivo no llegara a existir, en lugar de hacer fallar todo,
|
||||||
|
# devolvemos la ruta original, que puede ser el archivo que no existe
|
||||||
|
# o vacía si se está subiendo uno.
|
||||||
|
rescue Errno::ENOENT => e
|
||||||
|
ExceptionNotifier.notify_exception(e)
|
||||||
|
|
||||||
|
value['path']
|
||||||
end
|
end
|
||||||
|
|
||||||
def relative_destination_path_with_filename
|
def relative_destination_path_with_filename
|
||||||
|
|
Loading…
Reference in a new issue