예제 #1
0
        static public AttemptResult Delete(this StreamSystem item, string path, long milliseconds = StreamSystem.DEFAULT_WAIT)
        {
            if (item.DoesStreamExist(path))
            {
                return(item.DeleteStream(path, milliseconds));
            }

            if (item.DoesDirectoryExist(path))
            {
                return(item.DeleteDirectory(path, milliseconds));
            }

            return(AttemptResult.Failed);
        }
예제 #2
0
 public override AttemptResult DeleteStream(string path, long milliseconds = StreamSystem.DEFAULT_WAIT)
 {
     return(stream_system.DeleteStream(CalculatePath(path), milliseconds));
 }