OSDN Git Service

Update OBEX lib setPath Flags handling logic to be compatible with spec.
authorLixin Yue <L.X.YUE@motorola.com>
Thu, 10 Dec 2009 06:53:41 +0000 (14:53 +0800)
committerJaikumar Ganesh <jaikumar@google.com>
Thu, 17 Dec 2009 01:33:02 +0000 (17:33 -0800)
commit69f72c00a12933f0fde049e8465257745f373d21
treed64de4457f1dec625a79f4f7c371e570f787e582
parentc0e32f12439e5373dca5879e4eb7e819be7fb417
Update OBEX lib setPath Flags handling logic to be compatible with spec.

From IrOBEX, 3.3.6.1, we can see below explanation for Flags bit 1:
1  Don't create directory if it does not exist, return an error instead.
The correct understanding should be: if bit 1 is set to 1, we'll not create
directory if it not exist; if bit 1 is set to 0, we'll create it if it not
exists.
obex/javax/obex/ServerSession.java