How would you know if it's cancelled or finished without getting the status from the web?
If there is any way to make this sink in, your way is not it. Unless simplified, he will do it his way anyway.Sorry, OP. Lapsing into GN mode is irresistible.
/GN on
anyway <> any way
Anyway is an adverbial discourse marker that generally functions to deprecate the prior clause. It often functions like the phrase "be that as it may".
/GN off
ftfy.[-]Unless[/-] Even if simplified, he will do it his way anyway.
True...ftfy.![]()
List<DirectoryInfo> moveDirectories = new List<DirectoryInfo>();
DirectoryInfo DirInfo = new DirectoryInfo(@"dir");
foreach (DirectoryInfo d in DirInfo.GetDirectories())
{
if(d.FullName == @"\\dir\System Volume Information")
{
continue;
}
var files = from f in d.EnumerateFiles()
where f.Extension.Equals(".xml")
select f;
foreach (FileInfo f in files)
{
var doc = XDocument.Load(f.FullName);
foreach (var child in doc.Element("Series").Elements())
{
if(child.Name.LocalName.Equals("Status") && child.Value != "Continuing")
{
Console.WriteLine(f.Directory);
moveDirectories.Add(f.Directory);
}
}
}
}
foreach(DirectoryInfo oldPath in moveDirectories)
{
oldPath.MoveTo("newPath");
}
Thanks, Pho3nix. It's a relief to be liberated from Grammar Nazi mode. You have no idea how often the Inner GN is provoked. Usually I manage to resist. Glad to see this thread title also liberated.For the Nazi's, I've reported thread to request mod to change![]()