Let $K\subset\mathbb{R}^2$ be compact. Let the path boundary of $K$ denote the set of points in $z\in K$ such that for some point $w\in K^c$, there is a continuous path $\gamma:[0,1]\to\mathbb{R}^2$ such that
- $\gamma(0)=w$.
- $\gamma((0,1))\subset K^c$.
- $\gamma(1)=z$.
Of course the path boundary of $K$ is contained in the boundary of $K$, and it is not hard to find a set whose path boundary is a strict subset of its boundary. Take for example the block $[-1,1]\times[-1,1]$, and remove the sets $\left\{(x,y):y>0,\dfrac{1}{n^2}<x<\dfrac{2}{n^2}\right\}$, for $n\geq2$. The resulting set $K$ is compact (countably many open sets have been removed), and the set $\{(0,y):0\leq y<1\}$ is contained in the boundary of $K$ but not in the path boundary of $K$.
My question is: Is there a nice characterization of the sets for which the path boundary is equal to the boundary? Even a characterization for the case in which both $K$ and $K^c$ are connected would be welcome.
As a cautionary tale, I will say that the answer cannot depend just on smoothness of $\partial K$, since if $g:[0,1]\to[0,\infty)$ is any continuous function, then the path boundary of the set $K=\{(x,y):0\leq x\leq1,0\leq y\leq g(x)\}$ is equal to the boundary of $K$, and of course this $K$ can have quite jagged boundary.
PS: If someone has a much better name than "path boundary", feel free to change the question.