示例#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));
 }