Let K denote a knot inside the homology sphere Y . The zeroframed longitude of K gives the complement of K in Y the structure of a bordered three-manifold, which may be denoted by Y (K). We compute the bordered Floer complex CFD(Y (K)) in terms of the knot Floer complex associated with K. As a corollary, we show that if a homology sphere has the same Heegaard Floer homology as S 3 it does not contain any incompressible tori. Consequently, if Y is an irreducible homology sphere L-space then Y is either S 3 , or the Poicaré sphere Σ(2, 3, 5), or it is hyperbolic.