adding shares can take a long time due to the torrent creation process. The current activity can be interrupted by calling this function, in which case the original activity will fail with a ShareException
returns null if share not definedparamfile_or_dirreturn