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

            if (item.DoesDirectoryExist(src_path))
            {
                return(item.CopyDirectory(src_path, dst, dst_path, overwrite, milliseconds));
            }

            return(AttemptResult.Failed);
        }