Child pages
  • JSFile

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\ 

{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[Boolean]{td}{td}[#canRead]\()
Returns true if the file exists and is readable (has access to it).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#canWrite]\()
Returns true if the file exists and can be modified.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#createNewFile]\()
Creates the file on disk if needed.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#deleteFile]\()
Deletes the file from the disk if possible.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#exists]\()
Returns true if the file/directory exists on the filesystem.{td}{tr}{tbody}{tbody}{tr}{td}[JSFile]{td}{td}[#getAbsoluteFile]\()
Returns a JSFile instance that corresponds to the absolute form of this pathname.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getAbsolutePath]\()
Returns a String representation of the absolute form of this pathname.{td}{tr}{tbody}{tbody}{tr}{td}byte[]{td}{td}[#getBytes]\()
{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getContentType]\()
Returns the contenttype of this file, like for example 'application/pdf'.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getName]\()
Returns the name of the file.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getParent]\()
Returns the String representation of the path of the parent of this file.{td}{tr}{tbody}{tbody}{tr}{td}[JSFile]{td}{td}[#getParentFile]\()
Returns a JSFile instance that corresponds to the parent of this file.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getPath]\()
Returns a String holding the path to the file.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isAbsolute]\()
Returns true if the path is absolute.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isDirectory]\()
Returns true if the file is a directory.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isFile]\()
Returns true if the file is a file and not a regular file.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isHidden]\()
Returns true if the file is hidden (a file system attribute).{td}{tr}{tbody}{tbody}{tr}{td}[Date]{td}{td}[#lastModified]\()
Returns the time/date of the last modification on the file.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#list]\()
Returns an array of strings naming the files and directories located inside the file, if the file is a directory.{td}{tr}{tbody}{tbody}{tr}{td}[JSFile]\[]{td}{td}[#listFiles]\()
Returns an array of JSFiles naming the files and directories located inside the file, if the file is a directory.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#mkdir]\()
Creates a directory on disk if possible.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#mkdirs]\()
Creates a directory on disk, together with all its parent directories, if possible.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#renameTo]\(destination)
Renames the file to a different name.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#setLastModified]\(date)
Sets the date/time of the last modification on the file.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#setReadOnly]\()
Sets the readonly attribute of the file/directory.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#size]\()
Returns the size in bytes of the file.{td}{tr}{tbody}{table}\\ 

{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC}{tr:id=name}{td}h6.canRead{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}canRead{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC_des|text=|trigger=button}{sub-section}{sub-section:6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC_des|trigger=none|class=sIndent}Returns true if the file exists and is readable (has access to it).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC_ret|text=|trigger=button}{sub-section}{sub-section:6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC_see|text=|trigger=button}{sub-section}{sub-section:6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC_see|text=|trigger=button}{sub-section}{sub-section:6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC_sam|text=|trigger=button}{sub-section}{sub-section:6681E40246B6E5FC-6EAA5728-413F4C17-8949B853-A7F7DE74B0B8585D54723EDC_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073}{tr:id=name}{td}h6.canWrite{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}canWrite{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073_des|text=|trigger=button}{sub-section}{sub-section:F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073_des|trigger=none|class=sIndent}Returns true if the file exists and can be modified.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073_ret|text=|trigger=button}{sub-section}{sub-section:F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073_see|text=|trigger=button}{sub-section}{sub-section:F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073_see|text=|trigger=button}{sub-section}{sub-section:F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073_sam|text=|trigger=button}{sub-section}{sub-section:F8BEEAD7426D8BE5-ABCABF12-41384427-93E597C3-E2609B388A1DE46DF7982073_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2}{tr:id=name}{td}h6.createNewFile{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}createNewFile{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2_des|text=|trigger=button}{sub-section}{sub-section:EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2_des|trigger=none|class=sIndent}Creates the file on disk if needed. Returns true if the file (name) did not already exists and had to be created.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2_ret|text=|trigger=button}{sub-section}{sub-section:EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2_see|text=|trigger=button}{sub-section}{sub-section:EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2_see|text=|trigger=button}{sub-section}{sub-section:EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2_sam|text=|trigger=button}{sub-section}{sub-section:EAFF8702DCA21F4F-D58D74A5-41674DDD-A6BE9D4B-C8D1CB3F6582A7B6866625D2_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('story.txt');
if (f.exists())
	f.deleteFile();
else
	f.createNewFile();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F}{tr:id=name}{td}h6.deleteFile{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}deleteFile{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F_des|text=|trigger=button}{sub-section}{sub-section:4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F_des|trigger=none|class=sIndent}Deletes the file from the disk if possible. Returns true if the file could be deleted. If the file is a directory, then it must be empty in order to be deleted.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F_ret|text=|trigger=button}{sub-section}{sub-section:4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F_see|text=|trigger=button}{sub-section}{sub-section:4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F_see|text=|trigger=button}{sub-section}{sub-section:4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F_sam|text=|trigger=button}{sub-section}{sub-section:4F830295A689D512-58087FAA-41C74D9E-B904A7BE-0495F060E442F0D3D96E795F_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('story.txt');
if (f.exists())
	f.deleteFile();
else
	f.createNewFile();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795}{tr:id=name}{td}h6.exists{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}exists{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795_des|text=|trigger=button}{sub-section}{sub-section:1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795_des|trigger=none|class=sIndent}Returns true if the file/directory exists on the filesystem.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795_ret|text=|trigger=button}{sub-section}{sub-section:1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795_see|text=|trigger=button}{sub-section}{sub-section:1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795_see|text=|trigger=button}{sub-section}{sub-section:1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795_sam|text=|trigger=button}{sub-section}{sub-section:1B5D4D694D3C48A8-084B9E65-4E434DB6-A4F59585-3A59044AC40EF7CF3419C795_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0}{tr:id=name}{td}h6.getAbsoluteFile{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSFile]{span}{span:id=iets|style=float: left; font-weight: bold;}getAbsoluteFile{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0_des|text=|trigger=button}{sub-section}{sub-section:DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0_des|trigger=none|class=sIndent}Returns a JSFile instance that corresponds to the absolute form of this pathname.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0_ret|text=|trigger=button}{sub-section}{sub-section:DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0_ret|trigger=none|class=sIndent}[JSFile]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0_see|text=|trigger=button}{sub-section}{sub-section:DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0_see|text=|trigger=button}{sub-section}{sub-section:DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0_sam|text=|trigger=button}{sub-section}{sub-section:DAE8BA8268DB53BC-4081FD4B-4B9949B2-BFBCB2C2-E7E9FA047477279EE4AAB7B0_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('story.txt');
application.output('parent folder: ' + f.getAbsoluteFile().getParent());
application.output('parent folder has ' + f.getAbsoluteFile().getParentFile().listFiles().length + ' entries');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261}{tr:id=name}{td}h6.getAbsolutePath{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getAbsolutePath{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261_des|text=|trigger=button}{sub-section}{sub-section:F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261_des|trigger=none|class=sIndent}Returns a String representation of the absolute form of this pathname.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261_ret|text=|trigger=button}{sub-section}{sub-section:F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261_see|text=|trigger=button}{sub-section}{sub-section:F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261_see|text=|trigger=button}{sub-section}{sub-section:F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261_sam|text=|trigger=button}{sub-section}{sub-section:F60AC0843E600E60-083B7CAB-441147E6-857280E8-62700A53651FBBD369AE7261_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE}{tr:id=name}{td}h6.getBytes{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}byte[]{span}{span:id=iets|style=float: left; font-weight: bold;}getBytes{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE_des|text=|trigger=button}{sub-section}{sub-section:0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE_ret|text=|trigger=button}{sub-section}{sub-section:0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE_ret|trigger=none|class=sIndent}byte[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE_see|text=|trigger=button}{sub-section}{sub-section:0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE_see|text=|trigger=button}{sub-section}{sub-section:0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE_sam|text=|trigger=button}{sub-section}{sub-section:0F4618A1827D49F3-E91BF744-42454858-9825A0FF-BCB3C48B26FDFFD318CC44EE_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777}{tr:id=name}{td}h6.getContentType{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getContentType{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777_des|text=|trigger=button}{sub-section}{sub-section:3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777_des|trigger=none|class=sIndent}Returns the contenttype of this file, like for example 'application/pdf'.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777_ret|text=|trigger=button}{sub-section}{sub-section:3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777_see|text=|trigger=button}{sub-section}{sub-section:3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777_see|text=|trigger=button}{sub-section}{sub-section:3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777_sam|text=|trigger=button}{sub-section}{sub-section:3C2625C098B6823A-F16496E8-4B0C497E-9CACA509-F52B8114CA1A5ACF684C2777_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC}{tr:id=name}{td}h6.getName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC_des|text=|trigger=button}{sub-section}{sub-section:E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC_des|trigger=none|class=sIndent}Returns the name of the file. The name consists in the last part of the file path.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC_ret|text=|trigger=button}{sub-section}{sub-section:E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC_see|text=|trigger=button}{sub-section}{sub-section:E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC_see|text=|trigger=button}{sub-section}{sub-section:E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC_sam|text=|trigger=button}{sub-section}{sub-section:E8525C61FCEA8C14-158D7E28-4C224563-A443ACCA-FDCEAB43A7A15F10A73A69AC_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41}{tr:id=name}{td}h6.getParent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getParent{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41_des|text=|trigger=button}{sub-section}{sub-section:5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41_des|trigger=none|class=sIndent}Returns the String representation of the path of the parent of this file.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41_ret|text=|trigger=button}{sub-section}{sub-section:5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41_see|text=|trigger=button}{sub-section}{sub-section:5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41_see|text=|trigger=button}{sub-section}{sub-section:5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41_sam|text=|trigger=button}{sub-section}{sub-section:5A820E0FB052BFE3-14161C85-4E4F4923-9AB9A788-167A9B8748B448B0DC71CC41_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('story.txt');
application.output('parent folder: ' + f.getAbsoluteFile().getParent());
application.output('parent folder has ' + f.getAbsoluteFile().getParentFile().listFiles().length + ' entries');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971}{tr:id=name}{td}h6.getParentFile{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSFile]{span}{span:id=iets|style=float: left; font-weight: bold;}getParentFile{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971_des|text=|trigger=button}{sub-section}{sub-section:671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971_des|trigger=none|class=sIndent}Returns a JSFile instance that corresponds to the parent of this file.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971_ret|text=|trigger=button}{sub-section}{sub-section:671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971_ret|trigger=none|class=sIndent}[JSFile]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971_see|text=|trigger=button}{sub-section}{sub-section:671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971_see|text=|trigger=button}{sub-section}{sub-section:671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971_sam|text=|trigger=button}{sub-section}{sub-section:671189668D83AA1F-810ACB1A-43A54605-B17680CE-0DD0CD2D29BB84DC3DD2D971_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('story.txt');
application.output('parent folder: ' + f.getAbsoluteFile().getParent());
application.output('parent folder has ' + f.getAbsoluteFile().getParentFile().listFiles().length + ' entries');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B}{tr:id=name}{td}h6.getPath{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getPath{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B_des|text=|trigger=button}{sub-section}{sub-section:7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B_des|trigger=none|class=sIndent}Returns a String holding the path to the file.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B_ret|text=|trigger=button}{sub-section}{sub-section:7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B_see|text=|trigger=button}{sub-section}{sub-section:7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B_see|text=|trigger=button}{sub-section}{sub-section:7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B_sam|text=|trigger=button}{sub-section}{sub-section:7536964F3FF846EF-EE383F8A-47F944A6-9823AF6A-CE1D30384CA24D64F5F6F97B_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92}{tr:id=name}{td}h6.isAbsolute{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isAbsolute{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92_des|text=|trigger=button}{sub-section}{sub-section:9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92_des|trigger=none|class=sIndent}Returns true if the path is absolute. The path is absolute if it starts with '/' on Unix/Linux/MacOS or has a driver letter on Windows.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92_ret|text=|trigger=button}{sub-section}{sub-section:9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92_see|text=|trigger=button}{sub-section}{sub-section:9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92_see|text=|trigger=button}{sub-section}{sub-section:9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92_sam|text=|trigger=button}{sub-section}{sub-section:9AF15BF9CEEA5667-6AE3DC46-433B498D-92D8B093-90DCDF3C0480E24243595A92_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702}{tr:id=name}{td}h6.isDirectory{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isDirectory{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702_des|text=|trigger=button}{sub-section}{sub-section:3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702_des|trigger=none|class=sIndent}Returns true if the file is a directory.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702_ret|text=|trigger=button}{sub-section}{sub-section:3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702_see|text=|trigger=button}{sub-section}{sub-section:3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702_see|text=|trigger=button}{sub-section}{sub-section:3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702_sam|text=|trigger=button}{sub-section}{sub-section:3579539574671D68-E7047FAC-41F3401B-88CF8DB7-F2FFC603E03A83D7924D7702_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504}{tr:id=name}{td}h6.isFile{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isFile{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504_des|text=|trigger=button}{sub-section}{sub-section:814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504_des|trigger=none|class=sIndent}Returns true if the file is a file and not a regular file.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504_ret|text=|trigger=button}{sub-section}{sub-section:814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504_see|text=|trigger=button}{sub-section}{sub-section:814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504_see|text=|trigger=button}{sub-section}{sub-section:814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504_sam|text=|trigger=button}{sub-section}{sub-section:814B73E8F0B09764-BFD4A374-4D2742EC-A4EFB6B4-FFA1A9CB90BBB7385D7EA504_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A}{tr:id=name}{td}h6.isHidden{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isHidden{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A_des|text=|trigger=button}{sub-section}{sub-section:18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A_des|trigger=none|class=sIndent}Returns true if the file is hidden (a file system attribute).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A_ret|text=|trigger=button}{sub-section}{sub-section:18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A_see|text=|trigger=button}{sub-section}{sub-section:18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A_see|text=|trigger=button}{sub-section}{sub-section:18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A_sam|text=|trigger=button}{sub-section}{sub-section:18F3BBD80F68FE2F-68375E8C-4BBD4B34-873E848E-E9D41F9CD858EAA5CCC7289A_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928}{tr:id=name}{td}h6.lastModified{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Date]{span}{span:id=iets|style=float: left; font-weight: bold;}lastModified{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928_des|text=|trigger=button}{sub-section}{sub-section:D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928_des|trigger=none|class=sIndent}Returns the time/date of the last modification on the file.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928_ret|text=|trigger=button}{sub-section}{sub-section:D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928_ret|trigger=none|class=sIndent}[Date]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928_see|text=|trigger=button}{sub-section}{sub-section:D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928_see|text=|trigger=button}{sub-section}{sub-section:D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928_sam|text=|trigger=button}{sub-section}{sub-section:D8DFBA2A9701B476-54E44AD6-4B034F31-9B55885F-D448F745AE29196328052928_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374}{tr:id=name}{td}h6.list{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}list{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374_des|text=|trigger=button}{sub-section}{sub-section:646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374_des|trigger=none|class=sIndent}Returns an array of strings naming the files and directories located inside the file, if the file is a directory.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374_ret|text=|trigger=button}{sub-section}{sub-section:646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374_see|text=|trigger=button}{sub-section}{sub-section:646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374_see|text=|trigger=button}{sub-section}{sub-section:646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374_sam|text=|trigger=button}{sub-section}{sub-section:646864361601F8AE-28195687-493E4C0C-8F6AB1C5-F3C837B49A1B8F4B33717374_sam|class=sIndent|trigger=none}{code:language=javascript}
var d = plugins.file.convertToJSFile('plugins');
var names = d.list();
application.output('Names:');
for (var i=0; i<names.length; i++)
	application.output(names[i]);
var files = d.listFiles();
application.output('Absolute paths:');
for (var i=0; i<files.length; i++)
	application.output(files[i].getAbsolutePath());
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922}{tr:id=name}{td}h6.listFiles{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSFile]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}listFiles{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922_des|text=|trigger=button}{sub-section}{sub-section:62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922_des|trigger=none|class=sIndent}Returns an array of JSFiles naming the files and directories located inside the file, if the file is a directory.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922_ret|text=|trigger=button}{sub-section}{sub-section:62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922_ret|trigger=none|class=sIndent}[JSFile]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922_see|text=|trigger=button}{sub-section}{sub-section:62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922_see|text=|trigger=button}{sub-section}{sub-section:62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922_sam|text=|trigger=button}{sub-section}{sub-section:62E69AE414C5194D-D4E54D29-4C25461A-A3258764-B4F85BB617DB2B6D00B54922_sam|class=sIndent|trigger=none}{code:language=javascript}
var d = plugins.file.convertToJSFile('plugins');
var names = d.list();
application.output('Names:');
for (var i=0; i<names.length; i++)
	application.output(names[i]);
var files = d.listFiles();
application.output('Absolute paths:');
for (var i=0; i<files.length; i++)
	application.output(files[i].getAbsolutePath());
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1}{tr:id=name}{td}h6.mkdir{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}mkdir{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1_des|text=|trigger=button}{sub-section}{sub-section:0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1_des|trigger=none|class=sIndent}Creates a directory on disk if possible. Returns true if a new directory was created.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1_ret|text=|trigger=button}{sub-section}{sub-section:0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1_see|text=|trigger=button}{sub-section}{sub-section:0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1_see|text=|trigger=button}{sub-section}{sub-section:0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1_sam|text=|trigger=button}{sub-section}{sub-section:0EB678EA0E2AF77C-8100DEB6-48B14221-908D939A-5B5D48C21B7F76A5BFB00DC1_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('one/two/three/four');
f.mkdirs(); // Create all four levels of folders in one step.
var g = plugins.file.convertToJSFile('one/two/three/four/five');
g.mkdir(); // This will work because all parent folders are already created.
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2}{tr:id=name}{td}h6.mkdirs{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}mkdirs{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2_des|text=|trigger=button}{sub-section}{sub-section:064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2_des|trigger=none|class=sIndent}Creates a directory on disk, together with all its parent directories, if possible. Returns true if the hierarchy of directories is created.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2_ret|text=|trigger=button}{sub-section}{sub-section:064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2_see|text=|trigger=button}{sub-section}{sub-section:064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2_see|text=|trigger=button}{sub-section}{sub-section:064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2_sam|text=|trigger=button}{sub-section}{sub-section:064862F69302775C-9F76574F-472448C0-B41F875B-92951AFF779DCC72BD3C07C2_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('one/two/three/four');
f.mkdirs(); // Create all four levels of folders in one step.
var g = plugins.file.convertToJSFile('one/two/three/four/five');
g.mkdir(); // This will work because all parent folders are already created.
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E}{tr:id=name}{td}h6.renameTo{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}renameTo{span}{span:id=iets|style=float: left;}\(destination){span}{td}{tr}{tr:id=des}{td}{sub-section:C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E_des|text=|trigger=button}{sub-section}{sub-section:C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E_des|trigger=none|class=sIndent}Renames the file to a different name. Returns true if the file could be renamed.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E_prs|trigger=none}destination
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E_ret|text=|trigger=button}{sub-section}{sub-section:C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E_see|text=|trigger=button}{sub-section}{sub-section:C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E_see|text=|trigger=button}{sub-section}{sub-section:C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E_sam|text=|trigger=button}{sub-section}{sub-section:C21B2DE57A822AAA-8A54FBB5-49E74241-AB5387D9-66B00A6786214C74909CEA2E_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('story.txt');
f.renameTo('otherstory.txt');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF}{tr:id=name}{td}h6.setLastModified{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}setLastModified{span}{span:id=iets|style=float: left;}\(date){span}{td}{tr}{tr:id=des}{td}{sub-section:F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF_des|text=|trigger=button}{sub-section}{sub-section:F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF_des|trigger=none|class=sIndent}Sets the date/time of the last modification on the file.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF_prs|trigger=none}date
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF_ret|text=|trigger=button}{sub-section}{sub-section:F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF_see|text=|trigger=button}{sub-section}{sub-section:F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF_see|text=|trigger=button}{sub-section}{sub-section:F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF_sam|text=|trigger=button}{sub-section}{sub-section:F8223FEE73A4536D-D1AA6733-434F4548-9CD09D89-C0FB1D6EE5F8EBB3BC9ED4FF_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('story.txt');
f.createNewFile();
// Make the file look old.
f.setLastModified(new Date(1999, 5, 21));
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2}{tr:id=name}{td}h6.setReadOnly{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}setReadOnly{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2_des|text=|trigger=button}{sub-section}{sub-section:DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2_des|trigger=none|class=sIndent}Sets the readonly attribute of the file/directory. Returns true on success.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2_ret|text=|trigger=button}{sub-section}{sub-section:DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2_see|text=|trigger=button}{sub-section}{sub-section:DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2_see|text=|trigger=button}{sub-section}{sub-section:DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2_sam|text=|trigger=button}{sub-section}{sub-section:DCDFE3C2CA978559-44061EDC-44164076-BF558912-680F4295889E753AD819B6B2_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('invoice.txt');
plugins.file.writeTXTFile(f, 'important data that should not be changed');
f.setReadOnly();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA}{tr:id=name}{td}h6.size{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}size{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA_des|text=|trigger=button}{sub-section}{sub-section:AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA_des|trigger=none|class=sIndent}Returns the size in bytes of the file. Returns 0 if the file does not exist on disk.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA_ret|text=|trigger=button}{sub-section}{sub-section:AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA_see|text=|trigger=button}{sub-section}{sub-section:AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA_see|text=|trigger=button}{sub-section}{sub-section:AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA_sam|text=|trigger=button}{sub-section}{sub-section:AF61AC684DC76D63-E7135DA8-450A45B8-8D36B940-3950A1FB524908254105E4DA_sam|class=sIndent|trigger=none}{code:language=javascript}
var f = plugins.file.convertToJSFile('./big.jpg');
if (f.exists()) {
	application.output('is absolute: ' + f.isAbsolute());
	application.output('is dir: ' + f.isDirectory());
	application.output('is file: ' + f.isFile());
	application.output('is hidden: ' + f.isHidden());
	application.output('can read: ' + f.canRead());
	application.output('can write: ' + f.canWrite());
	application.output('last modified: ' + f.lastModified());
	application.output('name: ' + f.getName());
	application.output('path: ' + f.getPath());
	application.output('absolute path: ' + f.getAbsolutePath());
	application.output('content type: ' + f.getContentType());
	application.output('size: ' + f.size());
}
else {
	application.output('File/folder not found.');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}