File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ const main = async () => {
5757 resolved = normalize ( path . join ( dirname ( parsedFile . filename ) , target ) ) ;
5858 }
5959 const stats = await stat ( resolved ) . catch ( ( ) => undefined ) ;
60- if ( stats ?. isDirectory ( ) ) {
60+ if ( stats ?. isDirectory ( ) && ! link . content . includes ( "folder" ) ) {
6161 const readmeExists = await stat ( `${ resolved } /README.md` ) . catch ( ( ) => undefined ) ;
6262 if ( readmeExists ) {
6363 // console.log(
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ const main = async () => {
7878
7979 const stats = await stat ( resolved ) . catch ( ( ) => undefined ) ;
8080
81- if ( stats ?. isDirectory ( ) ) {
81+ if ( stats ?. isDirectory ( ) && ! link . content . includes ( "folder" ) ) {
8282 const readmeExists = await stat ( `${ resolved } /README.md` ) . catch (
8383 ( ) => undefined ,
8484 ) ;
You can’t perform that action at this time.
0 commit comments