From 4b56f2530d561405d2f4cab899989f957aa38f03 Mon Sep 17 00:00:00 2001 From: arkpar Date: Sun, 29 Oct 2017 13:35:12 +0100 Subject: [PATCH] Don't create IPC dir on windows --- parity/rpc.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/parity/rpc.rs b/parity/rpc.rs index 995c7f988..09d72c136 100644 --- a/parity/rpc.rs +++ b/parity/rpc.rs @@ -304,9 +304,11 @@ pub fn new_ipc( let handler = setup_apis(conf.apis, dependencies); let remote = dependencies.remote.clone(); let path = PathBuf::from(&conf.socket_addr); - if let Some(dir) = path.parent() { - ::std::fs::create_dir_all(&dir) - .map_err(|err| format!("Unable to create IPC directory at {}: {}", dir.display(), err))?; + if !cfg!(windows) { + if let Some(dir) = path.parent() { + ::std::fs::create_dir_all(&dir) + .map_err(|err| format!("Unable to create IPC directory at {}: {}", dir.display(), err))?; + } } match rpc::start_ipc(&conf.socket_addr, handler, remote, rpc::RpcExtractor) {