I never tried it myself, but according to the documentation I understand that first you need to
open a directory.
Once it is open, you can use
change_dir to point it elsewhere if you wish.
var dir = Directory.new()
if dir.open("user://") == OK:
if dir.change_dir("./xyz") == OK:
print("You have now descended into the xyz sub directory")