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}[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=A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E}{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:A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E_des|text=|trigger=button}{sub-section}{sub-section:A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E_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:A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E_ret|text=|trigger=button}{sub-section}{sub-section:A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E_see|text=|trigger=button}{sub-section}{sub-section:A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E_see|text=|trigger=button}{sub-section}{sub-section:A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E_sam|text=|trigger=button}{sub-section}{sub-section:A4A5E19D6F7A24AD-B2969C9F-4DA945B6-B1A8B496-8E6246EC18FF6F7D7B84779E_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=F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F}{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:F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F_des|text=|trigger=button}{sub-section}{sub-section:F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F_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:F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F_ret|text=|trigger=button}{sub-section}{sub-section:F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F_see|text=|trigger=button}{sub-section}{sub-section:F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F_see|text=|trigger=button}{sub-section}{sub-section:F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F_sam|text=|trigger=button}{sub-section}{sub-section:F0B7E037E705B7B7-000BE8D3-47834ACE-B80CA095-FE521A97D562A99AAE4BC71F_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=99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F}{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:99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F_des|text=|trigger=button}{sub-section}{sub-section:99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F_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:99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F_ret|text=|trigger=button}{sub-section}{sub-section:99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F_see|text=|trigger=button}{sub-section}{sub-section:99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F_see|text=|trigger=button}{sub-section}{sub-section:99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F_sam|text=|trigger=button}{sub-section}{sub-section:99A54EC8E4A33047-1A9CCC9D-4D6C4F93-B5BDAA77-4AE45886A746710168AA665F_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=6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A}{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:6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A_des|text=|trigger=button}{sub-section}{sub-section:6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A_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:6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A_ret|text=|trigger=button}{sub-section}{sub-section:6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A_see|text=|trigger=button}{sub-section}{sub-section:6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A_see|text=|trigger=button}{sub-section}{sub-section:6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A_sam|text=|trigger=button}{sub-section}{sub-section:6527C8D18AAA2449-7E06246F-49454FCD-8E4C898A-54042755E7C7AC90588E4A4A_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=8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555}{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:8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555_des|text=|trigger=button}{sub-section}{sub-section:8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555_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:8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555_ret|text=|trigger=button}{sub-section}{sub-section:8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555_see|text=|trigger=button}{sub-section}{sub-section:8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555_see|text=|trigger=button}{sub-section}{sub-section:8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555_sam|text=|trigger=button}{sub-section}{sub-section:8D38E7C41BB9F3B7-4E2A30A7-427C46AD-999A8A47-17CDCDFF34F44E0887FC6555_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=35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11}{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:35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11_des|text=|trigger=button}{sub-section}{sub-section:35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11_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:35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11_ret|text=|trigger=button}{sub-section}{sub-section:35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11_ret|trigger=none|class=sIndent}[JSFile]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11_see|text=|trigger=button}{sub-section}{sub-section:35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11_see|text=|trigger=button}{sub-section}{sub-section:35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11_sam|text=|trigger=button}{sub-section}{sub-section:35B0832364767C4E-4BF5995C-49B84909-AF279FDF-52752BDA2944E3894C7D7A11_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=178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176}{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:178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176_des|text=|trigger=button}{sub-section}{sub-section:178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176_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:178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176_ret|text=|trigger=button}{sub-section}{sub-section:178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176_see|text=|trigger=button}{sub-section}{sub-section:178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176_see|text=|trigger=button}{sub-section}{sub-section:178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176_sam|text=|trigger=button}{sub-section}{sub-section:178D606818B069E7-2ED965AF-43154E55-9CCCB441-5046EA5D470C4CE35A547176_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=07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A}{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:07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A_des|text=|trigger=button}{sub-section}{sub-section:07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A_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:07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A_ret|text=|trigger=button}{sub-section}{sub-section:07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A_see|text=|trigger=button}{sub-section}{sub-section:07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A_see|text=|trigger=button}{sub-section}{sub-section:07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A_sam|text=|trigger=button}{sub-section}{sub-section:07A5030486CE0D0A-7FEA37D2-4B7847B3-B16FAD1F-84E36B5CC750DCB4E133324A_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=20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7}{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:20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7_des|text=|trigger=button}{sub-section}{sub-section:20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7_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:20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7_ret|text=|trigger=button}{sub-section}{sub-section:20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7_see|text=|trigger=button}{sub-section}{sub-section:20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7_see|text=|trigger=button}{sub-section}{sub-section:20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7_sam|text=|trigger=button}{sub-section}{sub-section:20918717D55C1A7E-0F8DA418-42F1402B-AF19A989-003480F8A71ABF3A138A2AF7_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=5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204}{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:5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204_des|text=|trigger=button}{sub-section}{sub-section:5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204_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:5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204_ret|text=|trigger=button}{sub-section}{sub-section:5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204_see|text=|trigger=button}{sub-section}{sub-section:5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204_see|text=|trigger=button}{sub-section}{sub-section:5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204_sam|text=|trigger=button}{sub-section}{sub-section:5C60484532AA2F40-62EA983D-43BC469F-8F3BB180-3052C917537A470D77A0F204_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=EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4}{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:EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4_des|text=|trigger=button}{sub-section}{sub-section:EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4_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:EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4_ret|text=|trigger=button}{sub-section}{sub-section:EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4_ret|trigger=none|class=sIndent}[JSFile]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4_see|text=|trigger=button}{sub-section}{sub-section:EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4_see|text=|trigger=button}{sub-section}{sub-section:EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4_sam|text=|trigger=button}{sub-section}{sub-section:EB0BCD191E9A0A77-6234D923-40B1484C-BA4CB22D-1AB7896EDE6484CD0CA7C4B4_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=33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3}{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:33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3_des|text=|trigger=button}{sub-section}{sub-section:33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3_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:33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3_ret|text=|trigger=button}{sub-section}{sub-section:33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3_see|text=|trigger=button}{sub-section}{sub-section:33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3_see|text=|trigger=button}{sub-section}{sub-section:33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3_sam|text=|trigger=button}{sub-section}{sub-section:33FD733DB5CDBEA3-2E5B39F4-43C14228-95B99F7B-51A3566F656DC606A8C333C3_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=5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0}{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:5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0_des|text=|trigger=button}{sub-section}{sub-section:5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0_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:5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0_ret|text=|trigger=button}{sub-section}{sub-section:5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0_see|text=|trigger=button}{sub-section}{sub-section:5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0_see|text=|trigger=button}{sub-section}{sub-section:5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0_sam|text=|trigger=button}{sub-section}{sub-section:5DCE6D2BA1B8C9DD-AC11DE28-43B049CC-90428678-6536010CDCA52F02A9E9BDF0_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=F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF}{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:F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF_des|text=|trigger=button}{sub-section}{sub-section:F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF_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:F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF_ret|text=|trigger=button}{sub-section}{sub-section:F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF_see|text=|trigger=button}{sub-section}{sub-section:F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF_see|text=|trigger=button}{sub-section}{sub-section:F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF_sam|text=|trigger=button}{sub-section}{sub-section:F17353BA6D44B729-BE2C400D-4A2641C4-9CD0A9C1-155464A82A6AEB1F5EB839BF_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=D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71}{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:D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71_des|text=|trigger=button}{sub-section}{sub-section:D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71_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:D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71_ret|text=|trigger=button}{sub-section}{sub-section:D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71_see|text=|trigger=button}{sub-section}{sub-section:D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71_see|text=|trigger=button}{sub-section}{sub-section:D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71_sam|text=|trigger=button}{sub-section}{sub-section:D1B0F733049FEB78-241B5D4E-49964846-8799A1E0-B905FDE14462B5331049CB71_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=E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC}{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:E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC_des|text=|trigger=button}{sub-section}{sub-section:E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC_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:E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC_ret|text=|trigger=button}{sub-section}{sub-section:E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC_see|text=|trigger=button}{sub-section}{sub-section:E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC_see|text=|trigger=button}{sub-section}{sub-section:E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC_sam|text=|trigger=button}{sub-section}{sub-section:E27204610F59B84E-E15FD29B-470242FF-A045A03E-8EA5F1C1B298F58735CC39DC_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=157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30}{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:157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30_des|text=|trigger=button}{sub-section}{sub-section:157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30_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:157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30_ret|text=|trigger=button}{sub-section}{sub-section:157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30_ret|trigger=none|class=sIndent}[Date]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30_see|text=|trigger=button}{sub-section}{sub-section:157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30_see|text=|trigger=button}{sub-section}{sub-section:157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30_sam|text=|trigger=button}{sub-section}{sub-section:157846A604330969-82C70911-45DC4AA0-8D3F8E5B-06379796B304090819743F30_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=AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B}{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:AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B_des|text=|trigger=button}{sub-section}{sub-section:AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B_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:AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B_ret|text=|trigger=button}{sub-section}{sub-section:AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B_see|text=|trigger=button}{sub-section}{sub-section:AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B_see|text=|trigger=button}{sub-section}{sub-section:AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B_sam|text=|trigger=button}{sub-section}{sub-section:AE50BB317E86D687-DD646124-4C5543F0-AB088675-C4D43E74AA0E6C1C1431864B_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=B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D}{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:B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D_des|text=|trigger=button}{sub-section}{sub-section:B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D_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:B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D_ret|text=|trigger=button}{sub-section}{sub-section:B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D_ret|trigger=none|class=sIndent}[JSFile]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D_see|text=|trigger=button}{sub-section}{sub-section:B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D_see|text=|trigger=button}{sub-section}{sub-section:B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D_sam|text=|trigger=button}{sub-section}{sub-section:B658609D7359462E-BB9E6C20-47244B14-8C5898F2-16910398EBE7668E54AA080D_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=A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1}{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:A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1_des|text=|trigger=button}{sub-section}{sub-section:A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1_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:A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1_ret|text=|trigger=button}{sub-section}{sub-section:A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1_see|text=|trigger=button}{sub-section}{sub-section:A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1_see|text=|trigger=button}{sub-section}{sub-section:A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1_sam|text=|trigger=button}{sub-section}{sub-section:A59084ADD59889D6-BFFFC90C-47604293-9CDFA1CC-BBC60D3F0BFC8F1B3D3AB4E1_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=CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504}{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:CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504_des|text=|trigger=button}{sub-section}{sub-section:CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504_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:CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504_ret|text=|trigger=button}{sub-section}{sub-section:CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504_see|text=|trigger=button}{sub-section}{sub-section:CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504_see|text=|trigger=button}{sub-section}{sub-section:CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504_sam|text=|trigger=button}{sub-section}{sub-section:CD6CA4533AAA9FC1-B93F6A17-45FC4DE0-9ED4ABA8-D1375C230E8B2F7B59A1C504_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=67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0}{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:67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0_des|text=|trigger=button}{sub-section}{sub-section:67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0_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:67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0_prs|trigger=none}destination
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0_ret|text=|trigger=button}{sub-section}{sub-section:67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0_see|text=|trigger=button}{sub-section}{sub-section:67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0_see|text=|trigger=button}{sub-section}{sub-section:67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0_sam|text=|trigger=button}{sub-section}{sub-section:67DD764C5379AC9C-08BBBB3C-4B9B4393-9A67933B-EC5A6E479F21095B888391B0_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=B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE}{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:B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE_des|text=|trigger=button}{sub-section}{sub-section:B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE_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:B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE_prs|trigger=none}date
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE_ret|text=|trigger=button}{sub-section}{sub-section:B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE_see|text=|trigger=button}{sub-section}{sub-section:B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE_see|text=|trigger=button}{sub-section}{sub-section:B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE_sam|text=|trigger=button}{sub-section}{sub-section:B57E7468E821D552-C6C14F5F-4E3D4DCB-B4858F06-72C5AD09C561474C2A647EFE_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=1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC}{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:1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC_des|text=|trigger=button}{sub-section}{sub-section:1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC_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:1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC_ret|text=|trigger=button}{sub-section}{sub-section:1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC_see|text=|trigger=button}{sub-section}{sub-section:1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC_see|text=|trigger=button}{sub-section}{sub-section:1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC_sam|text=|trigger=button}{sub-section}{sub-section:1550EAA8C2DEF193-3EE5545C-47EC4870-9FD2B4D8-2196BC2B2A80DA937801F5FC_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=497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC}{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:497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC_des|text=|trigger=button}{sub-section}{sub-section:497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC_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:497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC_ret|text=|trigger=button}{sub-section}{sub-section:497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC_see|text=|trigger=button}{sub-section}{sub-section:497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC_see|text=|trigger=button}{sub-section}{sub-section:497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC_sam|text=|trigger=button}{sub-section}{sub-section:497C4913D8B088A3-8896827D-4DE04919-BE60A756-1ECFAAD66F10FE35C61DE2CC_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}