Skip to content

Lesson 14: doubt regarding the 'path' of the 3 images #2188

Answered by RoboCrypter
ManuWeb3 asked this question in Q&A
Discussion options

You must be logged in to vote

@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 inside newFolder, 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 that images folder is in the current directory, which in your case is hardhat-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/"

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
6 replies
@RoboCrypter
Comment options

@RoboCrypter
Comment options

@ManuWeb3
Comment options

@krakxn
Comment options

@ManuWeb3
Comment options

Answer selected by ManuWeb3
Comment options

You must be logged in to vote
3 replies
@ManuWeb3
Comment options

@RoboCrypter
Comment options

@ManuWeb3
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants