44 bool exists()
const {
return isJuceFlagSet (flagExists); }
66 return isJuceFlagSet (flagHasWritePermission)
68 && (isNativeFlagSet (flagSupportsWrite)
69 || isNativeFlagSet (flagSupportsDelete)
70 || isNativeFlagSet (flagDirSupportsCreate));
74 bool canDelete()
const {
return isNativeFlagSet (flagSupportsDelete); }
80 bool canRename()
const {
return isNativeFlagSet (flagSupportsRename); }
83 bool canCopy()
const {
return isNativeFlagSet (flagSupportsCopy); }
86 bool canMove()
const {
return isNativeFlagSet (flagSupportsMove); }
89 bool isVirtual()
const {
return isNativeFlagSet (flagVirtualDocument); }
106 int64
getLastModified()
const {
return isJuceFlagSet (flagValidModified) ? lastModified : 0; }
116 int64
getSizeInBytes()
const {
return isJuceFlagSet (flagValidSize) ? sizeInBytes : 0; }
127 bool isNativeFlagSet (
int flag)
const {
return (nativeFlags & flag) != 0; }
128 bool isJuceFlagSet (
int flag)
const {
return (juceFlags & flag) != 0; }
133 flagSupportsWrite = 0x0002,
134 flagSupportsDelete = 0x0004,
135 flagDirSupportsCreate = 0x0008,
136 flagSupportsRename = 0x0040,
137 flagSupportsCopy = 0x0080,
138 flagSupportsMove = 0x0100,
139 flagVirtualDocument = 0x0200,
146 flagValidModified = 1 << 1,
147 flagValidSize = 1 << 2,
148 flagHasReadPermission = 1 << 3,
149 flagHasWritePermission = 1 << 4,
154 int64 lastModified = 0;
155 int64 sizeInBytes = 0;
156 int nativeFlags = 0, juceFlags = 0;