src/Codeception/Module/WPFilesystem.php
public function amInUploadsPath($path = null)
    {
        if (null === $path) {
            $path = $this->config['uploads'];
        } else {
            $path = (string)$path;
            if (is_dir($this->config['uploads'] . DIRECTORY_SEPARATOR . Utils::unleadslashit($path))) {
                $path = $this->config['uploads'] . DIRECTORY_SEPARATOR . Utils::unleadslashit($path);
            } else {
                // time based?
                $timestamp = is_numeric($path) ? $path : strtotime($path);
                $path = implode(
                    DIRECTORY_SEPARATOR,
                    [
                        $this->config['uploads'],
                        date('Y', $timestamp),
                        date('m', $timestamp),
                    ]
                );
            }
        }
        $this->amInPath($path);
    }
public function amInUploadsPath($path = null)
    {
        if (null === $path) {
            $path = $this->config['uploads'];
        } else {
            $path = (string)$path;
            if (is_dir($this->config['uploads'] . DIRECTORY_SEPARATOR . Utils::unleadslashit($path))) {
                $path = $this->config['uploads'] . DIRECTORY_SEPARATOR . Utils::unleadslashit($path);
            } else {
                // time based?
                $timestamp = is_numeric($path) ? $path : strtotime($path);
                $path = implode(
                    DIRECTORY_SEPARATOR,
                    [
                        $this->config['uploads'],
                        date('Y', $timestamp),
                        date('m', $timestamp),
                    ]
                );
            }
        }
        $this->amInPath($path);
    }
public function amInUploadsPath ( $ path = null ) { if ( null === $ path ) { $ path = $ this -> config [ 'uploads' ] ; } else { $ path = ( string ) $ path ; if ( is_dir ( $ this -> config [ 'uploads' ] . DIRECTORY_SEPARATOR . Utils :: unleadslashit ( $ path ) ) ) { $ path = $ this -> config [ 'uploads' ] . DIRECTORY_SEPARATOR . Utils :: unleadslashit ( $ path ) ; } else { // time based? $ timestamp = is_numeric ( $ path ) ? $ path : strtotime ( $ path ) ; $ path = implode ( DIRECTORY_SEPARATOR , [ $ this -> config [ 'uploads' ] , date ( 'Y' , $ timestamp ) , date ( 'm' , $ timestamp ) , ] ) ; } } $ this -> amInPath ( $ path ) ; }
Enters, changing directory, to the uploads folder in the local filesystem.

@example
```php
$I->amInUploadsPath('/logs');
$I->seeFileFound('shop.log');
```

@param string $path The path, relative to the site uploads folder.
Enters changing directory to the uploads folder in the local filesystem .