Skip to content

Commit ff2c493

Browse files
author
infeo
committed
documentation
1 parent 37ddbee commit ff2c493

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

src/main/java/dev/dokan/dokan_java/AbstractDokanyFileSystem.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
import java.util.concurrent.atomic.AtomicBoolean;
2222
import java.util.stream.Collectors;
2323

24+
/**
25+
* TODO: Add Description to this class
26+
*/
2427
public abstract class AbstractDokanyFileSystem implements DokanyFileSystem {
2528

2629
private static final int TIMEOUT = 3000;

src/main/java/dev/dokan/dokan_java/DokanyFileSystemStub.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ public DokanyFileSystemStub(FileSystemInformation fileSystemInformation, boolean
1414
super(fileSystemInformation, usesKernelFlagsAndCodes);
1515
}
1616

17+
/**
18+
* {@inheritDoc}
19+
*
20+
* <p>
21+
* <b>Remark:</b>
22+
* When your filesystem uses the win32 codes (i.e. setting usesKernelFlagsAndCodes to false), some of the parameters are different form the description:
23+
* </p>
24+
* <ol>
25+
* <li>rawDesiredAccess represents the generic access mask of {@link dev.dokan.dokan_java.constants.microsoft.AccessMask} with specific one</li>
26+
* <li>rawFileAttributes contains besides the file attributes also file flags (see <a href=https://docs.microsoft.com/de-de/windows/win32/api/fileapi/nf-fileapi-createfilea>Microsoft documentation of CreateFile</a>) </li>
27+
* <li>rawCreateDisposition represents an {@link dev.dokan.dokan_java.constants.microsoft.CreationDisposition} value</li>
28+
* </ol>
29+
*/
1730
@Override
1831
@NotImplemented
1932
public int zwCreateFile(WString rawPath, WinBase.SECURITY_ATTRIBUTES securityContext, int rawDesiredAccess, int rawFileAttributes, int rawShareAccess, int rawCreateDisposition, int rawCreateOptions, DokanFileInfo dokanFileInfo) {

src/main/java/dev/dokan/dokan_java/constants/microsoft/FileAttribute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import com.sun.jna.platform.win32.WinNT;
66

77
/**
8-
* File attributes flags. They are metadata values stored by the file system on disk and are used by the system.
8+
* File attribute flags. They are metadata values stored by the file system on disk and are used by the system.
99
*
1010
* @see <a href="https://docs.microsoft.com/en-us/windows/desktop/FileIO/file-attribute-constants">Microsoft documentation of file attribute constants</a>
1111
* @see <a href="https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-createfilea">Microsoft documentation of CreateFileA function including the list of valid file attributes</a>

0 commit comments

Comments
 (0)