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=71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3}{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:71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3_des|text=|trigger=button}{sub-section}{sub-section:71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3_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:71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3_ret|text=|trigger=button}{sub-section}{sub-section:71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3_see|text=|trigger=button}{sub-section}{sub-section:71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3_see|text=|trigger=button}{sub-section}{sub-section:71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3_sam|text=|trigger=button}{sub-section}{sub-section:71101C705E9D089A-D463FBB2-4F8D4BE2-BE0189D9-4AD1D09F528C93EBC5E71AC3_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=8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF}{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:8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF_des|text=|trigger=button}{sub-section}{sub-section:8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF_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:8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF_ret|text=|trigger=button}{sub-section}{sub-section:8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF_see|text=|trigger=button}{sub-section}{sub-section:8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF_see|text=|trigger=button}{sub-section}{sub-section:8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF_sam|text=|trigger=button}{sub-section}{sub-section:8638DB5D62E6836E-B9B9C4F4-42CD465A-A54F8858-B0E5895818497ED2B04A8FBF_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=C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE}{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:C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE_des|text=|trigger=button}{sub-section}{sub-section:C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE_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:C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE_ret|text=|trigger=button}{sub-section}{sub-section:C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE_see|text=|trigger=button}{sub-section}{sub-section:C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE_see|text=|trigger=button}{sub-section}{sub-section:C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE_sam|text=|trigger=button}{sub-section}{sub-section:C7B6DBDDC875B768-9831AEF8-417C4FDC-A334B046-2D6C5F88943571C5563D06EE_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=D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60}{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:D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60_des|text=|trigger=button}{sub-section}{sub-section:D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60_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:D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60_ret|text=|trigger=button}{sub-section}{sub-section:D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60_see|text=|trigger=button}{sub-section}{sub-section:D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60_see|text=|trigger=button}{sub-section}{sub-section:D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60_sam|text=|trigger=button}{sub-section}{sub-section:D04EAB1BAA695941-258D7C3B-42B1483F-9B239252-974A8F894C4E30BACDF46A60_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=5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55}{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:5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55_des|text=|trigger=button}{sub-section}{sub-section:5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55_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:5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55_ret|text=|trigger=button}{sub-section}{sub-section:5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55_see|text=|trigger=button}{sub-section}{sub-section:5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55_see|text=|trigger=button}{sub-section}{sub-section:5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55_sam|text=|trigger=button}{sub-section}{sub-section:5CB1DE91AA23E264-42FD4D41-4884476F-A1B08478-67DEE71ADE7C3B69A4493B55_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=762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9}{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:762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9_des|text=|trigger=button}{sub-section}{sub-section:762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9_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:762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9_ret|text=|trigger=button}{sub-section}{sub-section:762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9_ret|trigger=none|class=sIndent}[JSFile]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9_see|text=|trigger=button}{sub-section}{sub-section:762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9_see|text=|trigger=button}{sub-section}{sub-section:762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9_sam|text=|trigger=button}{sub-section}{sub-section:762C8E2BD5665CD2-F53EA41D-403342CF-BA5D9168-C469A134C8DF4F852B5AF4B9_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=253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349}{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:253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349_des|text=|trigger=button}{sub-section}{sub-section:253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349_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:253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349_ret|text=|trigger=button}{sub-section}{sub-section:253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349_see|text=|trigger=button}{sub-section}{sub-section:253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349_see|text=|trigger=button}{sub-section}{sub-section:253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349_sam|text=|trigger=button}{sub-section}{sub-section:253DF1E6625F3843-8D7A5DCC-4E8C4AF0-91A68EA2-7BA9F3F9F96D6409A97C6349_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=25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E}{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:25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E_des|text=|trigger=button}{sub-section}{sub-section:25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E_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:25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E_ret|text=|trigger=button}{sub-section}{sub-section:25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E_ret|trigger=none|class=sIndent}byte[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E_see|text=|trigger=button}{sub-section}{sub-section:25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E_see|text=|trigger=button}{sub-section}{sub-section:25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E_sam|text=|trigger=button}{sub-section}{sub-section:25073AEF3A3B074D-980172D6-42074BBB-B35F8CF8-647A72F6681D83D3CFC0030E_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503}{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:9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503_des|text=|trigger=button}{sub-section}{sub-section:9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503_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:9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503_ret|text=|trigger=button}{sub-section}{sub-section:9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503_see|text=|trigger=button}{sub-section}{sub-section:9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503_see|text=|trigger=button}{sub-section}{sub-section:9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503_sam|text=|trigger=button}{sub-section}{sub-section:9CA3C7C80947BA4F-04305F98-45824CF2-B8D8B61C-AE64EA8F7BB49F84A3E2E503_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=ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134}{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:ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134_des|text=|trigger=button}{sub-section}{sub-section:ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134_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:ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134_ret|text=|trigger=button}{sub-section}{sub-section:ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134_see|text=|trigger=button}{sub-section}{sub-section:ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134_see|text=|trigger=button}{sub-section}{sub-section:ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134_sam|text=|trigger=button}{sub-section}{sub-section:ED2BA8C8AF958D2E-6C880E91-47694F20-9929A55A-00F2CFC0CD8B88ACDDA2F134_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=9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F}{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:9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F_des|text=|trigger=button}{sub-section}{sub-section:9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F_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:9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F_ret|text=|trigger=button}{sub-section}{sub-section:9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F_see|text=|trigger=button}{sub-section}{sub-section:9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F_see|text=|trigger=button}{sub-section}{sub-section:9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F_sam|text=|trigger=button}{sub-section}{sub-section:9A669B5F895DAB66-22CAA03B-46584025-98FE875C-CA972ECF8783FFF1A7D5380F_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=A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214}{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:A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214_des|text=|trigger=button}{sub-section}{sub-section:A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214_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:A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214_ret|text=|trigger=button}{sub-section}{sub-section:A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214_ret|trigger=none|class=sIndent}[JSFile]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214_see|text=|trigger=button}{sub-section}{sub-section:A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214_see|text=|trigger=button}{sub-section}{sub-section:A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214_sam|text=|trigger=button}{sub-section}{sub-section:A45CC33A6F6DD604-073E0D05-4E144FCA-9945B085-6B2AAB9512A98D37F07EA214_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=1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F}{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:1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F_des|text=|trigger=button}{sub-section}{sub-section:1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F_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:1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F_ret|text=|trigger=button}{sub-section}{sub-section:1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F_see|text=|trigger=button}{sub-section}{sub-section:1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F_see|text=|trigger=button}{sub-section}{sub-section:1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F_sam|text=|trigger=button}{sub-section}{sub-section:1426D2C001F0D937-EACCF95E-4A234D92-9DE5A568-83EE7178274D47B9C3A2B66F_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=F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0}{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:F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0_des|text=|trigger=button}{sub-section}{sub-section:F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0_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:F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0_ret|text=|trigger=button}{sub-section}{sub-section:F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0_see|text=|trigger=button}{sub-section}{sub-section:F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0_see|text=|trigger=button}{sub-section}{sub-section:F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0_sam|text=|trigger=button}{sub-section}{sub-section:F9E7A44AA9E52C75-BE77F0F4-46DB4553-A2DCB1C9-5C364DEAA29F6F85974FC2F0_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=567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583}{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:567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583_des|text=|trigger=button}{sub-section}{sub-section:567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583_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:567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583_ret|text=|trigger=button}{sub-section}{sub-section:567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583_see|text=|trigger=button}{sub-section}{sub-section:567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583_see|text=|trigger=button}{sub-section}{sub-section:567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583_sam|text=|trigger=button}{sub-section}{sub-section:567057B489021AC8-F93072E1-4DA24A69-AC7FAEDD-9B1E564F3F2495B39FFC4583_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=9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B}{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:9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B_des|text=|trigger=button}{sub-section}{sub-section:9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B_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:9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B_ret|text=|trigger=button}{sub-section}{sub-section:9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B_see|text=|trigger=button}{sub-section}{sub-section:9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B_see|text=|trigger=button}{sub-section}{sub-section:9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B_sam|text=|trigger=button}{sub-section}{sub-section:9E799CBDF2D44AFD-90177DC3-42364538-A7CD9E54-CFE3F369B04E5957C4D7571B_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=F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080}{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:F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080_des|text=|trigger=button}{sub-section}{sub-section:F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080_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:F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080_ret|text=|trigger=button}{sub-section}{sub-section:F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080_see|text=|trigger=button}{sub-section}{sub-section:F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080_see|text=|trigger=button}{sub-section}{sub-section:F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080_sam|text=|trigger=button}{sub-section}{sub-section:F620BCD10BBCE9B4-465E2E64-4F074710-B8F98256-9BBDF01A6B5140F105C22080_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=E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC}{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:E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC_des|text=|trigger=button}{sub-section}{sub-section:E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC_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:E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC_ret|text=|trigger=button}{sub-section}{sub-section:E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC_ret|trigger=none|class=sIndent}[Date]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC_see|text=|trigger=button}{sub-section}{sub-section:E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC_see|text=|trigger=button}{sub-section}{sub-section:E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC_sam|text=|trigger=button}{sub-section}{sub-section:E61BE0AA78F76411-164C7E70-4732437E-A4ADBBF6-308627FD059519E9B306E6DC_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=DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256}{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:DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256_des|text=|trigger=button}{sub-section}{sub-section:DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256_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:DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256_ret|text=|trigger=button}{sub-section}{sub-section:DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256_see|text=|trigger=button}{sub-section}{sub-section:DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256_see|text=|trigger=button}{sub-section}{sub-section:DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256_sam|text=|trigger=button}{sub-section}{sub-section:DAF89137FF0E8269-C8A553F9-4C104019-85C6A500-D2F16B67B616D6F1B11AD256_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=153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91}{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:153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91_des|text=|trigger=button}{sub-section}{sub-section:153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91_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:153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91_ret|text=|trigger=button}{sub-section}{sub-section:153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91_ret|trigger=none|class=sIndent}[JSFile]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91_see|text=|trigger=button}{sub-section}{sub-section:153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91_see|text=|trigger=button}{sub-section}{sub-section:153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91_sam|text=|trigger=button}{sub-section}{sub-section:153B843A4AAD8232-2D77A67C-4CAF4D82-B598926D-643AF5600408AD30A2855C91_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=B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40}{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:B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40_des|text=|trigger=button}{sub-section}{sub-section:B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40_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:B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40_ret|text=|trigger=button}{sub-section}{sub-section:B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40_see|text=|trigger=button}{sub-section}{sub-section:B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40_see|text=|trigger=button}{sub-section}{sub-section:B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40_sam|text=|trigger=button}{sub-section}{sub-section:B62DA9594EC4A82A-00DB91AD-46A04088-BEC69285-7227FE1726EF82E2CB526D40_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=51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8}{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:51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8_des|text=|trigger=button}{sub-section}{sub-section:51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8_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:51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8_ret|text=|trigger=button}{sub-section}{sub-section:51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8_see|text=|trigger=button}{sub-section}{sub-section:51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8_see|text=|trigger=button}{sub-section}{sub-section:51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8_sam|text=|trigger=button}{sub-section}{sub-section:51A7A610C618F5BB-C794D16D-42D548C0-84908DE2-3DDDF657469BCED81FA339D8_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=3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C}{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:3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C_des|text=|trigger=button}{sub-section}{sub-section:3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C_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:3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C_prs|trigger=none}destination
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C_ret|text=|trigger=button}{sub-section}{sub-section:3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C_see|text=|trigger=button}{sub-section}{sub-section:3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C_see|text=|trigger=button}{sub-section}{sub-section:3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C_sam|text=|trigger=button}{sub-section}{sub-section:3174FB353D6CFA2F-052C7779-4DE44D8E-932D8680-A03C96B9B05ECFB5CAFB320C_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=2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9}{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:2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9_des|text=|trigger=button}{sub-section}{sub-section:2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9_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:2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9_prs|trigger=none}date
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9_ret|text=|trigger=button}{sub-section}{sub-section:2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9_see|text=|trigger=button}{sub-section}{sub-section:2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9_see|text=|trigger=button}{sub-section}{sub-section:2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9_sam|text=|trigger=button}{sub-section}{sub-section:2AF0E6F2AE9E889B-A1A47C4E-484145AA-98918D9C-8E2B4592EC5FDBC5F75439B9_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=7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE}{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:7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE_des|text=|trigger=button}{sub-section}{sub-section:7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE_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:7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE_ret|text=|trigger=button}{sub-section}{sub-section:7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE_see|text=|trigger=button}{sub-section}{sub-section:7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE_see|text=|trigger=button}{sub-section}{sub-section:7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE_sam|text=|trigger=button}{sub-section}{sub-section:7D57F8D2A4097FD3-7C94F34E-494844B8-8952B271-F4ECB0BE6540E1A010D8BCAE_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=C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83}{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:C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83_des|text=|trigger=button}{sub-section}{sub-section:C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83_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:C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83_ret|text=|trigger=button}{sub-section}{sub-section:C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83_see|text=|trigger=button}{sub-section}{sub-section:C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83_see|text=|trigger=button}{sub-section}{sub-section:C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83_sam|text=|trigger=button}{sub-section}{sub-section:C776617C8D28F7C6-4A873423-43694AE6-B5F4BD0C-C0C73C3AE5E493EFE48C1E83_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}