Comments (3)
It seems that the issue can be fixed by listing SmbFiles instead of names:
public SMBDirectoryStream(SMBPath smbPath, java.nio.file.DirectoryStream.Filter<? super Path> filter) throws IOException {
if (!smbPath.getSmbFile().isDirectory()) throw new NotDirectoryException("The provided path '" + smbPath.toString() + "' is not a directory.");
this.content = new ArrayList<>();
for (SmbFile file : smbPath.getSmbFile().listFiles()) {
final Path path = smbPath.resolve(file.getName());
if (filter == null || filter.accept(path)) {
this.content.add(path);
}
}
}
from smb-nio.
This makes sense.
I have just committed the fix you proposed. Does it work now?
from smb-nio.
Yes, it works now. Thank you.
from smb-nio.
Related Issues (13)
- Read-only files cannot be read due to write operation HOT 2
- java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1
- Use NtlmPasswordAuthenticator with SMBFileSystemProvider HOT 6
- Directory must end with '/' (smb-nio-ng) HOT 1
- trailing slashes should not be required for directories/folders HOT 3
- dependency conflict with spring-integration-smb ? HOT 1
- Example usage mentions getDefault() but this method does not exist
- Environment is never used in the context HOT 1
- [FeatureRequest] Implement FileSystemProvider file channels HOT 2
- NullPointerException when creating new `FileSystem` from URI without username-component HOT 6
- Credentials in SMB URL not working
- URI encoding problems with passwords HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smb-nio.