Errors while trying to copy a file to user://

i’m trying to copy a file from the path of a dialog selector everything works fine until i try to open the user:// location

Can you share the code that works?

You may have to specify a file rather than only a folder

var just_file: String = path.get_file()
DirAccess.copy_absolute(path, "user://maps/" + just_file)