ApprovalTests.Maintenance.ApprovalMaintenance.CleanUpAbandonedFiles C# (CSharp) Method

CleanUpAbandonedFiles() public static method

** Warning : use at your own risk ** Deletes any files that may have been abandoned.
public static CleanUpAbandonedFiles ( ) : IEnumerable
return IEnumerable
		public static IEnumerable<FileInfo> CleanUpAbandonedFiles()
		{
			var assembly = new Caller().Methods.First().Module.Assembly; 
			var path = PathUtilities.GetDirectoryForCaller(1);
			var list = ApprovalMaintenance.FindAbandonedFiles(path,assembly);
			foreach (var fileInfo in list)
			{
				fileInfo.Delete();
			}
			return list;
		}
		public static IEnumerable<FileInfo> FindAbandonedFiles(string path)