// adds using namespace sys.add_use('System.IO') // initialize properties if(not isdef('Attributes')) v = this.props('Attributes').value flags = ((v _and_ 1) ? '|FileAttributes.ReadOnly' : '') + ((v _and_ 2) ? '|FileAttributes.Hidden' : '') + ((v _and_ 4) ? '|FileAttributes.System' : '') + ((v _and_ 8) ? '|FileAttributes.Directory' : '') + ((v _and_ 16) ? '|FileAttributes.Archive' : '') + ((v _and_ 32) ? '|FileAttributes.Device' : '') + ((v _and_ 64) ? '|FileAttributes.Normal' : '') + ((v _and_ 128) ? '|FileAttributes.Temporary' : '') + ((v _and_ 256) ? '|FileAttributes.SparseFile' : '') + ((v _and_ 512) ? '|FileAttributes.ReparsePoint' : '') + ((v _and_ 1024) ? '|FileAttributes.Compressed' : '') + ((v _and_ 2048) ? '|FileAttributes.Offline' : '') + ((v _and_ 4096) ? '|FileAttributes.NotContentIndexed' : '') + ((v _and_ 8192) ? '|FileAttributes.Encrypted' : '') blk_init.println(sys.get_obj_name(this.name), '.Attributes = (0', flag, ');') end sys.set_typed_field(20, 'CreationTime') sys.set_typed_field(20, 'CreationTimeUtc') sys.set_typed_field(20, 'LastAccessTime') sys.set_typed_field(20, 'LastAccessTimeUtc') sys.set_typed_field(20, 'LastWriteTime') sys.set_typed_field(20, 'LastWriteTimeUtc')