You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that unlike TTY::File.copy_directory(), TTY::File.copy_file() does't return a value on success.
Would be possible that both methods behave similar?
Steps to reproduce the problem
# Need of rescuing the method in order to know about the success
begin
TTY::File.copy_file( ... )
rescue
success = false
...
else
success = true
end
Actual behaviour
result = TTY::File.copy_file()
# result == nil in both error and success
Expected behaviour
Equivalent to its 'brother' method TTY::File.copy_directory()
Describe the problem
I noticed that unlike TTY::File.copy_directory(), TTY::File.copy_file() does't return a value on success.
Would be possible that both methods behave similar?
Steps to reproduce the problem
Actual behaviour
Expected behaviour
Equivalent to its 'brother' method TTY::File.copy_directory()
Describe your environment
The text was updated successfully, but these errors were encountered: