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=46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C}{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:46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C_des|text=|trigger=button}{sub-section}{sub-section:46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C_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:46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C_ret|text=|trigger=button}{sub-section}{sub-section:46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C_see|text=|trigger=button}{sub-section}{sub-section:46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C_see|text=|trigger=button}{sub-section}{sub-section:46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C_sam|text=|trigger=button}{sub-section}{sub-section:46B6E5FC71101C70-5728D463-4C174F8D-B853BE01-585D54723EDC4AD1D09F528C_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=426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849}{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:426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849_des|text=|trigger=button}{sub-section}{sub-section:426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849_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:426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849_ret|text=|trigger=button}{sub-section}{sub-section:426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849_see|text=|trigger=button}{sub-section}{sub-section:426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849_see|text=|trigger=button}{sub-section}{sub-section:426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849_sam|text=|trigger=button}{sub-section}{sub-section:426D8BE58638DB5D-BF12B9B9-442742CD-97C3A54F-E46DF7982073B0E589581849_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=DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435}{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:DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435_des|text=|trigger=button}{sub-section}{sub-section:DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435_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:DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435_ret|text=|trigger=button}{sub-section}{sub-section:DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435_see|text=|trigger=button}{sub-section}{sub-section:DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435_see|text=|trigger=button}{sub-section}{sub-section:DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435_sam|text=|trigger=button}{sub-section}{sub-section:DCA21F4FC7B6DBDD-74A59831-4DDD417C-9D4BA334-A7B6866625D22D6C5F889435_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=A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E}{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:A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E_des|text=|trigger=button}{sub-section}{sub-section:A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E_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:A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E_ret|text=|trigger=button}{sub-section}{sub-section:A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E_see|text=|trigger=button}{sub-section}{sub-section:A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E_see|text=|trigger=button}{sub-section}{sub-section:A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E_sam|text=|trigger=button}{sub-section}{sub-section:A689D512D04EAB1B-7FAA258D-4D9E42B1-A7BE9B23-F0D3D96E795F974A8F894C4E_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=4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C}{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:4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C_des|text=|trigger=button}{sub-section}{sub-section:4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C_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:4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C_ret|text=|trigger=button}{sub-section}{sub-section:4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C_see|text=|trigger=button}{sub-section}{sub-section:4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C_see|text=|trigger=button}{sub-section}{sub-section:4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C_sam|text=|trigger=button}{sub-section}{sub-section:4D3C48A85CB1DE91-9E6542FD-4DB64884-9585A1B0-F7CF3419C79567DEE71ADE7C_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=68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF}{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:68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF_des|text=|trigger=button}{sub-section}{sub-section:68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF_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:68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF_ret|text=|trigger=button}{sub-section}{sub-section:68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF_ret|trigger=none|class=sIndent}[JSFile]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF_see|text=|trigger=button}{sub-section}{sub-section:68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF_see|text=|trigger=button}{sub-section}{sub-section:68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF_sam|text=|trigger=button}{sub-section}{sub-section:68DB53BC762C8E2B-FD4BF53E-49B24033-B2C2BA5D-279EE4AAB7B0C469A134C8DF_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=3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D}{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:3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D_des|text=|trigger=button}{sub-section}{sub-section:3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D_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:3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D_ret|text=|trigger=button}{sub-section}{sub-section:3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D_see|text=|trigger=button}{sub-section}{sub-section:3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D_see|text=|trigger=button}{sub-section}{sub-section:3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D_sam|text=|trigger=button}{sub-section}{sub-section:3E600E60253DF1E6-7CAB8D7A-47E64E8C-80E891A6-BBD369AE72617BA9F3F9F96D_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=827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D}{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:827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D_des|text=|trigger=button}{sub-section}{sub-section:827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D_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:827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D_ret|text=|trigger=button}{sub-section}{sub-section:827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D_ret|trigger=none|class=sIndent}byte[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D_see|text=|trigger=button}{sub-section}{sub-section:827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D_see|text=|trigger=button}{sub-section}{sub-section:827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D_sam|text=|trigger=button}{sub-section}{sub-section:827D49F325073AEF-F7449801-48584207-A0FFB35F-FFD318CC44EE647A72F6681D_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4}{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:98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4_des|text=|trigger=button}{sub-section}{sub-section:98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4_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:98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4_ret|text=|trigger=button}{sub-section}{sub-section:98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4_see|text=|trigger=button}{sub-section}{sub-section:98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4_see|text=|trigger=button}{sub-section}{sub-section:98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4_sam|text=|trigger=button}{sub-section}{sub-section:98B6823A9CA3C7C8-96E80430-497E4582-A509B8D8-5ACF684C2777AE64EA8F7BB4_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=FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B}{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:FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B_des|text=|trigger=button}{sub-section}{sub-section:FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B_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:FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B_ret|text=|trigger=button}{sub-section}{sub-section:FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B_see|text=|trigger=button}{sub-section}{sub-section:FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B_see|text=|trigger=button}{sub-section}{sub-section:FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B_sam|text=|trigger=button}{sub-section}{sub-section:FCEA8C14ED2BA8C8-7E286C88-45634769-ACCA9929-5F10A73A69AC00F2CFC0CD8B_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=B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783}{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:B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783_des|text=|trigger=button}{sub-section}{sub-section:B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783_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:B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783_ret|text=|trigger=button}{sub-section}{sub-section:B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783_see|text=|trigger=button}{sub-section}{sub-section:B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783_see|text=|trigger=button}{sub-section}{sub-section:B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783_sam|text=|trigger=button}{sub-section}{sub-section:B052BFE39A669B5F-1C8522CA-49234658-A78898FE-48B0DC71CC41CA972ECF8783_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=8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9}{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:8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9_des|text=|trigger=button}{sub-section}{sub-section:8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9_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:8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9_ret|text=|trigger=button}{sub-section}{sub-section:8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9_ret|trigger=none|class=sIndent}[JSFile]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9_see|text=|trigger=button}{sub-section}{sub-section:8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9_see|text=|trigger=button}{sub-section}{sub-section:8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9_sam|text=|trigger=button}{sub-section}{sub-section:8D83AA1FA45CC33A-CB1A073E-46054E14-80CE9945-84DC3DD2D9716B2AAB9512A9_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=3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D}{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:3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D_des|text=|trigger=button}{sub-section}{sub-section:3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D_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:3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D_ret|text=|trigger=button}{sub-section}{sub-section:3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D_see|text=|trigger=button}{sub-section}{sub-section:3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D_see|text=|trigger=button}{sub-section}{sub-section:3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D_sam|text=|trigger=button}{sub-section}{sub-section:3FF846EF1426D2C0-3F8AEACC-44A64A23-AF6A9DE5-4D64F5F6F97B83EE7178274D_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=CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F}{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:CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F_des|text=|trigger=button}{sub-section}{sub-section:CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F_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:CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F_ret|text=|trigger=button}{sub-section}{sub-section:CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F_see|text=|trigger=button}{sub-section}{sub-section:CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F_see|text=|trigger=button}{sub-section}{sub-section:CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F_sam|text=|trigger=button}{sub-section}{sub-section:CEEA5667F9E7A44A-DC46BE77-498D46DB-B093A2DC-E24243595A925C364DEAA29F_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=74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24}{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:74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24_des|text=|trigger=button}{sub-section}{sub-section:74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24_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:74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24_ret|text=|trigger=button}{sub-section}{sub-section:74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24_see|text=|trigger=button}{sub-section}{sub-section:74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24_see|text=|trigger=button}{sub-section}{sub-section:74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24_sam|text=|trigger=button}{sub-section}{sub-section:74671D68567057B4-7FACF930-401B4DA2-8DB7AC7F-83D7924D77029B1E564F3F24_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=F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E}{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:F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E_des|text=|trigger=button}{sub-section}{sub-section:F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E_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:F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E_ret|text=|trigger=button}{sub-section}{sub-section:F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E_see|text=|trigger=button}{sub-section}{sub-section:F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E_see|text=|trigger=button}{sub-section}{sub-section:F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E_sam|text=|trigger=button}{sub-section}{sub-section:F0B097649E799CBD-A3749017-42EC4236-B6B4A7CD-B7385D7EA504CFE3F369B04E_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=0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51}{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:0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51_des|text=|trigger=button}{sub-section}{sub-section:0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51_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:0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51_ret|text=|trigger=button}{sub-section}{sub-section:0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51_see|text=|trigger=button}{sub-section}{sub-section:0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51_see|text=|trigger=button}{sub-section}{sub-section:0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51_sam|text=|trigger=button}{sub-section}{sub-section:0F68FE2FF620BCD1-5E8C465E-4B344F07-848EB8F9-EAA5CCC7289A9BBDF01A6B51_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=9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595}{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:9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595_des|text=|trigger=button}{sub-section}{sub-section:9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595_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:9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595_ret|text=|trigger=button}{sub-section}{sub-section:9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595_ret|trigger=none|class=sIndent}[Date]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595_see|text=|trigger=button}{sub-section}{sub-section:9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595_see|text=|trigger=button}{sub-section}{sub-section:9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595_sam|text=|trigger=button}{sub-section}{sub-section:9701B476E61BE0AA-4AD6164C-4F314732-885FA4AD-196328052928308627FD0595_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=1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616}{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:1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616_des|text=|trigger=button}{sub-section}{sub-section:1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616_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:1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616_ret|text=|trigger=button}{sub-section}{sub-section:1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616_see|text=|trigger=button}{sub-section}{sub-section:1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616_see|text=|trigger=button}{sub-section}{sub-section:1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616_sam|text=|trigger=button}{sub-section}{sub-section:1601F8AEDAF89137-5687C8A5-4C0C4C10-B1C585C6-8F4B33717374D2F16B67B616_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=14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408}{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:14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408_des|text=|trigger=button}{sub-section}{sub-section:14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408_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:14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408_ret|text=|trigger=button}{sub-section}{sub-section:14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408_ret|trigger=none|class=sIndent}[JSFile]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408_see|text=|trigger=button}{sub-section}{sub-section:14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408_see|text=|trigger=button}{sub-section}{sub-section:14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408_sam|text=|trigger=button}{sub-section}{sub-section:14C5194D153B843A-4D292D77-461A4CAF-8764B598-2B6D00B54922643AF5600408_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=0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF}{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:0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF_des|text=|trigger=button}{sub-section}{sub-section:0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF_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:0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF_ret|text=|trigger=button}{sub-section}{sub-section:0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF_see|text=|trigger=button}{sub-section}{sub-section:0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF_see|text=|trigger=button}{sub-section}{sub-section:0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF_sam|text=|trigger=button}{sub-section}{sub-section:0E2AF77CB62DA959-DEB600DB-422146A0-939ABEC6-76A5BFB00DC17227FE1726EF_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=9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B}{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:9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B_des|text=|trigger=button}{sub-section}{sub-section:9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B_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:9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B_ret|text=|trigger=button}{sub-section}{sub-section:9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B_see|text=|trigger=button}{sub-section}{sub-section:9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B_see|text=|trigger=button}{sub-section}{sub-section:9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B_sam|text=|trigger=button}{sub-section}{sub-section:9302775C51A7A610-574FC794-48C042D5-875B8490-CC72BD3C07C23DDDF657469B_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=7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E}{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:7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E_des|text=|trigger=button}{sub-section}{sub-section:7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E_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:7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E_prs|trigger=none}destination
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E_ret|text=|trigger=button}{sub-section}{sub-section:7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E_see|text=|trigger=button}{sub-section}{sub-section:7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E_see|text=|trigger=button}{sub-section}{sub-section:7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E_sam|text=|trigger=button}{sub-section}{sub-section:7A822AAA3174FB35-FBB5052C-42414DE4-87D9932D-4C74909CEA2EA03C96B9B05E_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=73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F}{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:73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F_des|text=|trigger=button}{sub-section}{sub-section:73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F_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:73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F_prs|trigger=none}date
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F_ret|text=|trigger=button}{sub-section}{sub-section:73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F_see|text=|trigger=button}{sub-section}{sub-section:73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F_see|text=|trigger=button}{sub-section}{sub-section:73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F_sam|text=|trigger=button}{sub-section}{sub-section:73A4536D2AF0E6F2-6733A1A4-45484841-9D899891-EBB3BC9ED4FF8E2B4592EC5F_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=CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540}{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:CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540_des|text=|trigger=button}{sub-section}{sub-section:CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540_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:CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540_ret|text=|trigger=button}{sub-section}{sub-section:CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540_see|text=|trigger=button}{sub-section}{sub-section:CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540_see|text=|trigger=button}{sub-section}{sub-section:CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540_sam|text=|trigger=button}{sub-section}{sub-section:CA9785597D57F8D2-1EDC7C94-40764948-89128952-753AD819B6B2F4ECB0BE6540_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=4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4}{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:4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4_des|text=|trigger=button}{sub-section}{sub-section:4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4_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:4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4_ret|text=|trigger=button}{sub-section}{sub-section:4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4_see|text=|trigger=button}{sub-section}{sub-section:4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4_see|text=|trigger=button}{sub-section}{sub-section:4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4_sam|text=|trigger=button}{sub-section}{sub-section:4DC76D63C776617C-5DA84A87-45B84369-B940B5F4-08254105E4DAC0C73C3AE5E4_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}