What could be the other causes? We test if it exists and if it's a dir at the begining of the method: https://github.com/dadoonet/elasticsearch/blob/8176a9b4b4ae3b4d58a72d79a6f067e4db89a2fd/src/main/java/org/elasticsearch/plugins/PluginsService.java#L341