Skip to content
Snippets Groups Projects
Commit 5a271187 authored by Florian Angerer's avatar Florian Angerer
Browse files

Do not set name for source if created from file.

parent 9f1f7f66
Branches
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ public class RSource {
* Create an (external) source from the file system path {@code path}.
*/
public static Source fromFileName(String path, boolean internal) throws IOException {
Source.Builder<IOException, RuntimeException, RuntimeException> builder = Source.newBuilder(new File(path)).name(path).mimeType(RRuntime.R_APP_MIME);
Source.Builder<IOException, RuntimeException, RuntimeException> builder = Source.newBuilder(new File(path)).mimeType(RRuntime.R_APP_MIME);
if (internal) {
builder.internal();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment