# WOK
TKWOK
WOKUnix

# WOKUnix_Path Class Reference

Supplee aux insuffisances de OSD_File
.

`#include <WOKUnix_Path.hxx>`

## Public Member Functions

Standard_EXPORT | WOKUnix_Path ()
| Instantiates Path from WOKUnix .
Standard_EXPORT | WOKUnix_Path (const Standard_CString apath)
Standard_EXPORT | WOKUnix_Path (const Handle(TCollection_HAsciiString)&apath)
| Instantiates Path from WOKUnix using an asciistring .
Standard_EXPORT | WOKUnix_Path (const Handle(TCollection_HAsciiString)&adir, const Handle(TCollection_HAsciiString)&aname)
| Instantiates Path from WOKUnix using an directory and a name .
Standard_EXPORT | WOKUnix_Path (const Standard_CString adir, const Standard_CString aname)
| Instantiates Path from WOKUnix using an directory and a name .
Standard_Boolean | CheckStats ()
Standard_EXPORT Standard_Boolean | GetStats ()
const Handle_TCollection_HAsciiString & | Name () const
| returns PathName
Standard_EXPORT void | SetName (const Handle(TCollection_HAsciiString)&apath)
| sets path
Standard_EXPORT WOKUnix_FDescr | BuildFDescr () const
| Builds a WOKUnix_FDescr to manipulate Path .
Standard_EXPORT Standard_Boolean | Exists () const
| Tests existency of path on disk .
Standard_EXPORT Standard_Boolean | CreateDirectory (const Standard_Boolean CreateParents=Standard_False)
| Creates path as a directory .
Standard_EXPORT Standard_Boolean | CreateFile (const Standard_Boolean CreateParents=Standard_False)
| Creates path as a file on disk .
Standard_EXPORT Standard_Boolean | IsSymLink ()
Standard_EXPORT Standard_Boolean | IsFile ()
Standard_EXPORT Standard_Boolean | IsDirectory ()
Standard_EXPORT Standard_Boolean | CreateSymLinkTo (const Handle(WOKUnix_Path)&apath)
Standard_EXPORT Standard_Boolean | RemoveDirectory (const Standard_Boolean RemoveChilds=Standard_False)
Standard_EXPORT Standard_Boolean | RemoveFile ()
Standard_EXPORT Standard_Boolean | MoveTo (const Handle(WOKUnix_Path)&adestpath)
| Renames file to destpath Failes if mypath and dest path are not on the same file system mypath is changed to which of adestpath .
Standard_EXPORT Handle_WOKUnix_Path | ReducedPath () const
| reduces Path as much as possible (reads links)
Standard_EXPORT Standard_Boolean | IsSamePath (const Handle(WOKUnix_Path)&another) const
| Tests is me corresponds to the same file as <another> (reads links) .
Standard_EXPORT Standard_Boolean | IsSameFile (const Handle(WOKUnix_Path)&another) const
| Teste si deux fichiers ont le meme contenu (typiquement utilise a l'extraction) .
WOKUnix_TimeStat | MDate ()
| returns known date of path
void | ResetMDate ()
Standard_EXPORT Standard_Boolean | IsOlder (const Handle(WOKUnix_Path)&another)
Standard_EXPORT Standard_Boolean | IsNewer (const Handle(WOKUnix_Path)&another)
Standard_EXPORT Standard_Boolean | IsWriteAble () const
Standard_EXPORT WOKUnix_Extension | Extension () const
| extracts Extension of file
Standard_EXPORT Handle_TCollection_HAsciiString | ExtensionName () const
| extracts Extension of file
Standard_EXPORT Handle_TCollection_HAsciiString | BaseName () const
| returns the basename of File
Standard_EXPORT Handle_TCollection_HAsciiString | DirName () const
| returns the dirname of file
Standard_EXPORT Handle_TCollection_HAsciiString | FileName () const
| returns the filename (<basename>.<extension>) of path
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Private Attributes

Handle_TCollection_HAsciiString | mypath
Standard_Boolean | myacces
WOKUnix_StatBuf | mystats

## Constructor & Destructor Documentation

Standard_EXPORT WOKUnix_Path::WOKUnix_Path | ( |  | ) |

Standard_EXPORT WOKUnix_Path::WOKUnix_Path | ( | const Standard_CString | apath | ) |

Standard_EXPORT WOKUnix_Path::WOKUnix_Path | ( | const Handle(TCollection_HAsciiString)& | apath | ) |

Standard_EXPORT WOKUnix_Path::WOKUnix_Path | ( | const Handle(TCollection_HAsciiString)& | adir,
|  | const Handle(TCollection_HAsciiString)& | aname
| ) |

Standard_EXPORT WOKUnix_Path::WOKUnix_Path | ( | const Standard_CString | adir,
|  | const Standard_CString | aname
| ) |

## Member Function Documentation

Standard_EXPORT Handle_TCollection_HAsciiString WOKUnix_Path::BaseName | ( |  | ) | const

Standard_EXPORT WOKUnix_FDescr WOKUnix_Path::BuildFDescr | ( |  | ) | const

Standard_Boolean WOKUnix_Path::CheckStats | ( |  | ) | `[inline]`

Standard_EXPORT Standard_Boolean WOKUnix_Path::CreateDirectory | ( | const Standard_Boolean | CreateParents = `Standard_False` | ) |

Standard_EXPORT Standard_Boolean WOKUnix_Path::CreateFile | ( | const Standard_Boolean | CreateParents = `Standard_False` | ) |

Standard_EXPORT Standard_Boolean WOKUnix_Path::CreateSymLinkTo | ( | const Handle(WOKUnix_Path)& | apath | ) |

Standard_EXPORT Handle_TCollection_HAsciiString WOKUnix_Path::DirName | ( |  | ) | const

Standard_EXPORT Standard_Boolean WOKUnix_Path::Exists | ( |  | ) | const

Standard_EXPORT WOKUnix_Extension WOKUnix_Path::Extension | ( |  | ) | const

Standard_EXPORT Handle_TCollection_HAsciiString WOKUnix_Path::ExtensionName | ( |  | ) | const

Standard_EXPORT Handle_TCollection_HAsciiString WOKUnix_Path::FileName | ( |  | ) | const

Standard_EXPORT Standard_Boolean WOKUnix_Path::GetStats | ( |  | ) |

Standard_EXPORT const WOKUnix_Path::Handle | ( | Standard_Type |  | ) | const

Standard_EXPORT Standard_Boolean WOKUnix_Path::IsDirectory | ( |  | ) |

Standard_EXPORT Standard_Boolean WOKUnix_Path::IsFile | ( |  | ) |

Standard_EXPORT Standard_Boolean WOKUnix_Path::IsNewer | ( | const Handle(WOKUnix_Path)& | another | ) |

Standard_EXPORT Standard_Boolean WOKUnix_Path::IsOlder | ( | const Handle(WOKUnix_Path)& | another | ) |

Standard_EXPORT Standard_Boolean WOKUnix_Path::IsSameFile | ( | const Handle(WOKUnix_Path)& | another | ) | const

Standard_EXPORT Standard_Boolean WOKUnix_Path::IsSamePath | ( | const Handle(WOKUnix_Path)& | another | ) | const

Standard_EXPORT Standard_Boolean WOKUnix_Path::IsSymLink | ( |  | ) |

Standard_EXPORT Standard_Boolean WOKUnix_Path::IsWriteAble | ( |  | ) | const

WOKUnix_TimeStat WOKUnix_Path::MDate | ( |  | ) | `[inline]`

Standard_EXPORT Standard_Boolean WOKUnix_Path::MoveTo | ( | const Handle(WOKUnix_Path)& | adestpath | ) |

const Handle_TCollection_HAsciiString& WOKUnix_Path::Name | ( |  | ) | const

Standard_EXPORT Handle_WOKUnix_Path WOKUnix_Path::ReducedPath | ( |  | ) | const

Standard_EXPORT Standard_Boolean WOKUnix_Path::RemoveDirectory | ( | const Standard_Boolean | RemoveChilds = `Standard_False` | ) |

Standard_EXPORT Standard_Boolean WOKUnix_Path::RemoveFile | ( |  | ) |

void WOKUnix_Path::ResetMDate | ( |  | ) | `[inline]`

Standard_EXPORT void WOKUnix_Path::SetName | ( | const Handle(TCollection_HAsciiString)& | apath | ) |

## Field Documentation

Standard_Boolean WOKUnix_Path::myacces `[private]`

Handle_TCollection_HAsciiString WOKUnix_Path::mypath `[private]`

WOKUnix_StatBuf WOKUnix_Path::mystats `[private]`

The documentation for this class was generated from the following files:

- WOKUnix_Path.hxx
- WOKUnix_Path.lxx