public static bool rmdir( byte[] file ) { try { String f = newstring( file ); if( Directory.Exists( f ) ) { Directory.Delete( f ); return Directory.Exists( f ); } else { return true; } } catch (Exception) { return true; } }