# Method Filesystem.Stat()->set_type()

Method set_type

  `void set_type(string x)`

Description

  Set a type for the stat-object.

Note

  This call doesnot change the filetype in the underlaying filesystem.

Parameter `x`

  Type to set. Type is one of the following:

  - fifo, chr, dir, blk, reg, lnk, sock and door
See also

  [isfifo], [ischr], [isdir], [isblk], [isreg], [islnk], [issock], [isdoor]