Gradle subproject name different than folder name

Project names can only be changed in settings.gradle. For example: include “foo” // or `includeFlat`, doesn’t matter // always good to nail down the root project name, because // the root directory name may be different in some envs (e.g. CI) // hence the following even makes sense for single-project builds rootProject.name = “bar” // … Read more

Directory.GetFiles of certain extension

If you would like to do your filtering in LINQ, you can do it like this: var ext = new List<string> { “jpg”, “gif”, “png” }; var myFiles = Directory .EnumerateFiles(dir, “*.*”, SearchOption.AllDirectories) .Where(s => ext.Contains(Path.GetExtension(s).TrimStart(“.”).ToLowerInvariant())); Now ext contains a list of allowed extensions; you can add or remove items from it as necessary for … Read more

How can I exclude multiple folders using Get-ChildItem -exclude?

My KISS approach to skip some folders is chaining Get-ChildItem calls. This excludes root level folders but not deeper level folders if that is what you want. Get-ChildItem -Exclude folder1,folder2 | Get-ChildItem -Recurse | … Start excluding folders you don’t want Then do the recursive search with non desired folders excluded. What I like from … Read more

Automatically Delete Files/Folders

Maybe you’re just looking for a combination of file.remove and list.files? Maybe something like: do.call(file.remove, list(list.files(“C:/Temp”, full.names = TRUE))) And I guess you can filter the list of files down to those whose names match a certain pattern using grep or grepl, no?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)