Lesson 14: doubt regarding the 'path' of the 3 images #2188
-
Hi all, In the deploy script: I've this doubt because of the directory structure of our codebase. When the So, shouldn't there be a double dot |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
./ = Current directory. So, In your You are not requiring it from somewhere, You are just telling in your It will be like : So, we will write : |
Beta Was this translation helpful? Give feedback.
-
Yes, there should be a double dot. As the |
Beta Was this translation helpful? Give feedback.
@ManuWeb3 :
./ = Current directory.
../ = Parent of current directory.
So, In your
03-deploy-random-ipfs-nft.js
file, you wrote./
because you you are saying it that images folder is in Current directory,Let's say
images
are in another folder, lets say insidenewFolder
, then you will use../
because now, it is in Parent of Current directory.You are not requiring it from somewhere, You are just telling in your
deploy
folder thatimages
folder is in the current directory, which in your case ishardhat-nft-fcc
It will be like :
hardhat-nft-fcc/images/randomNft/
and because you are already in a directory, as you can see in your terminal.So, we will write :
"./images/randomNft/"