diff --git a/source/vibe/core/file.d b/source/vibe/core/file.d index 4b6887a..9006b73 100644 --- a/source/vibe/core/file.d +++ b/source/vibe/core/file.d @@ -465,7 +465,7 @@ void listDirectory(NativePath path, DirectoryListMode mode, ChannelConfig cc; cc.priority = ChannelPriority.overhead; - ListDirectoryRequest req; + scope ListDirectoryRequest req; req.path = path; req.channel = createChannel!ListDirectoryData(cc); req.spanMode = mode;