Opravení metody toAbsolutePath
This commit is contained in:
parent
0f1e4b226f
commit
cfe64e91f1
|
@ -113,7 +113,7 @@
|
|||
- Např. ```Path soubor = Paths.get("D:\\ppa1\\data.txt");```
|
||||
- Je vhodné používat ```File.sepearator``` pro oddělení jednotlivých názvů adresářů
|
||||
- Absolutní cesta
|
||||
- Metoda ```toAbsolutPath()```
|
||||
- Metoda ```toAbsolutePath()```
|
||||
- Vrátí novou instanci ```Path``` reprezentující soubor nebo složku jako absolutní cestu
|
||||
- Pokud už současná instance je absolutní cesta, vrátí stejnou instanci
|
||||
- Pokud je současná instance relativní cesta, vytvoří z ní absolutní doplněním aktuálního adresáře (složky)
|
||||
|
|
Loading…
Reference in New Issue