protected function directory( $directory = null )
    {
        switch ( $directory ) {
            case 'storage':
                $this->comment('Cleaning assets library in storage.');
                $count = 0;
                foreach ($this->filesystem->files( $this->directory['storage'] ) as $file)
                {
                    $this->filesystem->delete($file);
                    $count++;
                }
                $this->info($count .' files removed');
            break;

            case 'public':
                $this->comment('Cleaning assets directory in public.');
                $this->filesystem->deleteDirectory( $this->directory['public'] );
                $this->info('Assets directory in public has been removed');
            break;

            default:
                $this->directory('storage');
                $this->directory('public');
            break;
        }
    }