txt: ## qnx.md
  class IO::Spec::QNX
  
  Platform specific operations on file and directory paths QNX
  
  ```raku
  class IO::Spec::QNX is IO::Spec::Unix { }
  ```
  
  An object of this type is available via the variable `$*SPEC` if the Raku interpreter is running on a `QNX` platform.
  
  About this class and its related classes also see [`IO::Spec`](/type/IO/Spec).
  
  # [Methods](#class_IO::Spec::QNX "go to top of document")[§](#Methods "direct link")
  
  ## [method canonpath](#class_IO::Spec::QNX "go to top of document")[§](#method_canonpath "direct link")
  
  ```raku
  method canonpath(Str() $path, :$parent --> Str:D)
  ```
  
  Returns a string that is a canonical representation of `$path`. If `:$parent` is set to true, will also clean up references to parent directories. **NOTE:** the routine does not access the filesystem, so no symlinks are followed.
  
  ```raku
  IO::Spec::QNX.canonpath("foo//../bar/../ber").say;
  # OUTPUT: «foo/../bar/../ber␤»
  
  IO::Spec::QNX.canonpath("foo///./../bar/../ber").say;
  # OUTPUT: «foo/../bar/../ber␤»
  
  IO::Spec::QNX.canonpath("foo///./../bar/../ber", :parent).say;
  # OUTPUT: «ber␤»
  ```
  