Construction
Construct an RWFileStat object by passing the name of a valid file:
 
RWFileStat st ("filename");
 
For links, the RWFileStat object will stat the link object itself and not the target of the symbolic link. If you want to stat the target use:
 
RWFileStat st ("filename", true);