mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-20 21:01:25 +03:00
Avoid warning about SCCS folders in libraries, just ignore them. Fixes #3237
This commit is contained in:
@ -169,7 +169,15 @@ public class FileUtils {
|
||||
}
|
||||
|
||||
public static boolean isSCCSOrHiddenFile(File file) {
|
||||
return file.isHidden() || file.getName().charAt(0) == '.' || (file.isDirectory() && SOURCE_CONTROL_FOLDERS.contains(file.getName()));
|
||||
return isSCCSFolder(file) || isHiddenFile(file);
|
||||
}
|
||||
|
||||
public static boolean isHiddenFile(File file) {
|
||||
return file.isHidden() || file.getName().charAt(0) == '.';
|
||||
}
|
||||
|
||||
public static boolean isSCCSFolder(File file) {
|
||||
return file.isDirectory() && SOURCE_CONTROL_FOLDERS.contains(file.getName());
|
||||
}
|
||||
|
||||
public static String readFileToString(File file) throws IOException {
|
||||
|
Reference in New Issue
Block a user