Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directories #26

Open
hengxti opened this issue Feb 23, 2016 · 0 comments
Open

Directories #26

hengxti opened this issue Feb 23, 2016 · 0 comments

Comments

@hengxti
Copy link

hengxti commented Feb 23, 2016

If you use fsroot.addDirectory returns a DirectoryEntry when it should return another FsDirectory. Because if you only get a FsDirectoryEntry, you can not use Long file names that are already implemented to navigate throgh the directory tree. The only workaround is to directly use the FATspecific classes which I think were meant to be used via the generic File System Interface.

Additionally the call to addDirectory should also create the . and .. Directory entries so that the image used by another driver can actually navigate into that directory. I get an error doing that.

    File file = new File("C:\\fat32test.img");
    FileDisk filedisk = new FileDisk(file, false);

    FileSystem fs = FileSystemFactory.create(filedisk, false);
    FsDirectory fsroot = fs.getRoot();
    fsroot.
    FsDirectoryEntry subdir = fsroot.addDirectory("adddir");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant