Skip to content

Commit 1377e5d

Browse files
committed
Fix checking whether path belongs to mapped directory (#511)
1 parent 93a0cca commit 1377e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/servers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ namespace tremotesf {
207207
QString Servers::fromRemoteToLocalDirectory(const QString& remotePath, PathOs pathOs) {
208208
for (const auto& [localDirectory, remoteDirectory] : mCurrentServerMountedDirectories) {
209209
const auto remoteDirectoryNormalized = normalizePath(remoteDirectory, pathOs);
210-
if (isPathUnderThisDirectory(remoteDirectory, remoteDirectoryNormalized)) {
210+
if (isPathUnderThisDirectory(remotePath, remoteDirectoryNormalized)) {
211211
return localDirectory + remotePath.mid(remoteDirectoryNormalized.size());
212212
}
213213
}

0 commit comments

Comments
 (0)