Bazat e kompjuterit

File path

Në shqip: Shtegu i skedarit

ShpjegimiSQ

Shtegu është „adresa“ e një skedari në kompjuter, p.sh. /Users/arta/projekti/index.html. Shtegu absolut nis nga rrënja e diskut; ai relativ nis nga dosja ku je tani, p.sh. css/style.css.

EnglishEN

A file path is a file's “address” on the computer, e.g. /Users/arta/project/index.html. An absolute path starts from the root of the disk; a relative path starts from the folder you're in, e.g. css/style.css.

Si ta mendosh

Si adresa e plotë e shtëpisë (absolute) krahasuar me „dy dyer më poshtë“ (relative) — e dyta vlen vetëm nëse e di ku ndodhesh.

Lexoje në anglisht

Like a full home address (absolute) versus “two doors down” (relative) — the second only works if you know where you're standing.

Shembull kodipython

from pathlib import Path
shtegu = Path("css") / "style.css"  # relativ
print(shtegu.resolve())            # shtegu i plotë (absolut)

Terma të lidhur