Skip to content

Commit 42fab27

Browse files
committed
Added flag to indicate a file is a special client API file
1 parent 487baa3 commit 42fab27

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/main/java/org/filesys/server/filesys/NetworkFile.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public enum Flags {
8383
CREATE_FILE, // File should be created if it does not exist
8484
DISALLOW_SET_CREATETIME, // do not allow setting of creation date/time via this file handle
8585
DISALLOW_SET_ACCESSTIME, // do not allow setting of access date/time via this file handle
86-
DISALLOW_SET_MODIFYTIME // do not allow setting of the modify date/time via this file handle
86+
DISALLOW_SET_MODIFYTIME, // do not allow setting of the modify date/time via this file handle
87+
CLIENT_API // file is a special client API file
8788
};
8889

8990
// File identifier and parent directory identifier
@@ -613,6 +614,13 @@ public final int getProtocolId() {
613614
*/
614615
public final long getRequestId() { return m_requestId; }
615616

617+
/**
618+
* Check if the file is a special client API file
619+
*
620+
* @return boolean
621+
*/
622+
public final boolean isClientAPIFile() { return m_flags.contains( Flags.CLIENT_API); }
623+
616624
/**
617625
* Set the file attributes, as specified by the SMBFileAttribute class.
618626
*
@@ -1270,6 +1278,9 @@ public String toString() {
12701278
if ( isPreviousVersion())
12711279
str.append( " Ver");
12721280

1281+
if ( isClientAPIFile())
1282+
str.append( " ClientAPI");
1283+
12731284
if ( hasAccessToken()) {
12741285
str.append(",Token=");
12751286
str.append( getAccessToken());

0 commit comments

Comments
 (0)