From 21aeb66982f4c1a922dcd8a710bff00d3468fbd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoshiki=20V=C3=A1zquez=20Baeza?= Date: Fri, 7 Oct 2016 23:59:25 -0700 Subject: [PATCH] Change default mounting path fixes #20 --- FTPFS/FTPFSDelegate.m | 2 +- SSHFS/SSHFSDelegate.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FTPFS/FTPFSDelegate.m b/FTPFS/FTPFSDelegate.m index e666b8e..aabba65 100644 --- a/FTPFS/FTPFSDelegate.m +++ b/FTPFS/FTPFSDelegate.m @@ -132,7 +132,7 @@ - (id)impliedValueParameterNamed:(NSString*)parameterName otherParameters:(NSDic if ([parameterName isEqualToString:kMFFSMountPathParameter] && [parameters objectForKey:kNetFSHostParameter]) { NSString *mountBathBase = [parameters objectForKey:kMFFSNameParameter] ? [parameters objectForKey:kMFFSNameParameter] : [parameters objectForKey:kNetFSHostParameter]; - NSString *mountPath = [NSString stringWithFormat:@"/Volumes/%@", mountBathBase]; + NSString *mountPath = [NSString stringWithFormat:@"%@/Volumes/%@", NSHomeDirectory(), mountBathBase]; return mountPath; } diff --git a/SSHFS/SSHFSDelegate.m b/SSHFS/SSHFSDelegate.m index 9e8601e..5ad53af 100644 --- a/SSHFS/SSHFSDelegate.m +++ b/SSHFS/SSHFSDelegate.m @@ -177,7 +177,7 @@ - (id)impliedValueParameterNamed:(NSString *)parameterName otherParameters:(NSDi if ([parameterName isEqualToString:kMFFSMountPathParameter] && [parameters objectForKey:kNetFSHostParameter]) { NSString *mountBathBase = [parameters objectForKey:kMFFSNameParameter] ? [parameters objectForKey:kMFFSNameParameter] :[parameters objectForKey:kNetFSHostParameter]; - NSString *mountPath = [NSString stringWithFormat:@"/Volumes/%@", mountBathBase]; + NSString *mountPath = [NSString stringWithFormat:@"%@/Volumes/%@", NSHomeDirectory(), mountBathBase]; return mountPath; } if ([parameterName isEqualToString:kMFFSVolumeNameParameter] && [parameters objectForKey:kNetFSHostParameter]) {