Is empty, it is determined whether the presence of the path is determined path

When it is determined path is empty

if (Directory.GetDirectories(path).Length > 0 || Directory.GetFiles(path).Length > 0)
            {
                // There 
            }
             the else
            {
              // No 
            }

Determining whether the presence of the path

if (Directory.Exists(VideoUrl))
                        {
                          
                        } 

 

Guess you like

Origin www.cnblogs.com/macT/p/12014934.html