Beispiel #1
0
 public AttemptResult CopyTo(StreamDirectory destination, bool overwrite, long milliseconds = StreamSystem.DEFAULT_WAIT)
 {
     return(GetStreamSystem().Copy(
                GetPath(),
                destination.GetStreamSystem(),
                destination.GetChildPath(GetName()),
                overwrite,
                milliseconds
                ));
 }
Beispiel #2
0
        public AttemptResult MoveTo(StreamDirectory destination, bool overwrite, long milliseconds = StreamSystem.DEFAULT_WAIT)
        {
            AttemptResult result = GetStreamSystem().Move(
                GetPath(),
                destination.GetStreamSystem(),
                destination.GetChildPath(GetName()),
                overwrite,
                milliseconds
                );

            if (result.IsDesired())
            {
                SetParentDirectory(destination);
            }

            return(result);
        }