Modules

filter

 

Objects/Functions

module (N/file)

SuiteScript 2.0

File.path

{File}.path{READ_ONLY_PROPERTY: {}})

N/file Module
File.path
Property Description: The relative path to a file in the NetSuite File Cabinet. If the folder is not set with the file.create(options) method, this property holds the file name until the File.folder property is defined. This property is read-only.
Type: string
Supported Script Types: Server-side scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/file Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=File.path

Example:

// Code Example 1
//Add additional code
//...
var fileObj = file.load({
id: 145
});
log.debug({
details: "File Path: " + fileObj.path
});
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4229268933.html