top of page
- API -

pathInfo = reaper.AZ_GetPathInfo(fullPath)

- API Detail-

▼Input value

・fullPath: Target path


▼Output value

・pathInfo: Path information object

→ParentPath: Parent folder path

→ParentName: Name of the parent folder

→FilePath : Full path of the file

→FileName: File name

→FileNameWithoutExtension : File name without extension

→Extension : Extension

→Type: Folder/File/blank

- SCRIPT -

os = reaper.GetOS()


if "Win" == string.match(os,"(Win)") then

package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dll"

else

package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dylib"

end

require("reaper_AZSTOKE_SILVER")


function Msg(param)

reaper.ShowConsoleMsg(tostring(param).."\n")

end


path = "D://script//wav//JP//AZ_vo_PL0000_01.wav"

pathInfo = reaper.AZ_GetPathInfo(path)


Msg(pathInfo.ParentPath)

Msg(pathInfo.ParentName)

Msg(pathInfo.FilePath)

Msg(pathInfo.FileName)

Msg(pathInfo.FileNameWithoutExtension)

Msg(pathInfo.Extension)

Msg(pathInfo.Type)

FILE/FOLDER

AZ_GetPathInfo

Supported versions:

1.0.3

onwards

Output each piece of full path information as a map array

bottom of page