Skip to content

Commit

Permalink
Change default mounting path fixes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
ElDeveloper committed Oct 8, 2016
1 parent 8d807af commit 21aeb66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FTPFS/FTPFSDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion SSHFS/SSHFSDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit 21aeb66

Please sign in to comment.