Exemple #1
0
        static public AttemptResult CopyStream(this StreamSystem item, string src_path, StreamSystem dst, string dst_path, bool overwrite, long milliseconds = StreamSystem.DEFAULT_WAIT)
        {
            if (dst == item)
            {
                return(item.CopyStreamNative(src_path, dst_path, overwrite, milliseconds));
            }

            return(item.CopyStreamForeign(src_path, dst, dst_path, overwrite, milliseconds));
        }
Exemple #2
0
 public override AttemptResult CopyStreamForeign(string src_path, StreamSystem dst, string dst_path, bool overwrite, long milliseconds = StreamSystem.DEFAULT_WAIT)
 {
     return(stream_system.CopyStreamForeign(CalculatePath(src_path), dst, dst_path, overwrite, milliseconds));
 }