- https://www.codewars.com/kata/5844e0890d3bedc5c5000e54 File Path Operations.
Started at 22:27 07.10.2020 Wendesday Oct.
Finished at 22:32 07.10.2020 Wendesday Oct. (0hrs 5minutes)
<?php | |
# https://www.codewars.com/kata/5844e0890d3bedc5c5000e54 File Path Operations. | |
class FileMaster { | |
public function __construct($filepath){ | |
$this->f = $filepath; | |
$this->x = pathinfo($filepath); | |
} | |
public function extension(){ | |
return $this->x['extension']; | |
} | |
public function filename(){ | |
return $this->x['filename']; | |
} | |
public function dirpath(){ | |
return $this->x['dirname'] . '/'; | |
} | |
} |
Started at 22:27 07.10.2020 Wendesday Oct.
Finished at 22:32 07.10.2020 Wendesday Oct. (0hrs 5minutes)