René's URL Explorer Experiment


Title: FileUtils | Phoenix Code Docs

Open Graph Title: FileUtils | Phoenix Code Docs

Description: Import :

Open Graph Description: Import :

Opengraph URL: https://docs.phcode.dev/api/API-Reference/file/FileUtils

Generator: Docusaurus v3.7.0

direct link

Domain: docs.phcode.dev

twitter:cardsummary_large_image
og:imagehttps://docs.phcode.dev/img/socialcard.png
twitter:imagehttps://docs.phcode.dev/img/socialcard.png
og:localeen
docusaurus_localeen
docsearch:languageen
docusaurus_versioncurrent
docusaurus_tagdocs-api-current
docsearch:versioncurrent
docsearch:docusaurus_tagdocs-api-current
None3

Links:

Skip to main contenthttps://docs.phcode.dev/api/API-Reference/file/FileUtils#__docusaurus_skipToContent_fallback
Phoenix Codehttps://docs.phcode.dev/
Docshttps://docs.phcode.dev/docs/intro
APIhttps://docs.phcode.dev/api/getting-started
Bloghttps://docs.phcode.dev/blog
Downloadhttps://phcode.io/
GitHubhttps://github.com/phcode-dev/
Getting Startedhttps://docs.phcode.dev/api/getting-started
Creating Themeshttps://docs.phcode.dev/api/creating-themes
Creating Extensionshttps://docs.phcode.dev/api/creating-extensions
Use node.js from your extensionhttps://docs.phcode.dev/api/creating-node-extensions
Debugging Extensionshttps://docs.phcode.dev/api/debugging-extensions
Publishing Themes & Extensionshttps://docs.phcode.dev/api/publishing-extensions
Available Standard Librarieshttps://docs.phcode.dev/api/available-standard-libs
How-Tohttps://docs.phcode.dev/api/How-To/Dialogs
API-Referencehttps://docs.phcode.dev/api/API-Reference/JSUtils/Preferences
JSUtilshttps://docs.phcode.dev/api/API-Reference/JSUtils/Preferences
NodeConnectorhttps://docs.phcode.dev/api/API-Reference/NodeConnector
commandhttps://docs.phcode.dev/api/API-Reference/command/CommandManager
Documenthttps://docs.phcode.dev/api/API-Reference/document
Editorhttps://docs.phcode.dev/api/API-Reference/editor
featureshttps://docs.phcode.dev/api/API-Reference/features/BeautificationManager
filehttps://docs.phcode.dev/api/API-Reference/file/FileUtils
FileUtilshttps://docs.phcode.dev/api/API-Reference/file/FileUtils
FileSystemhttps://docs.phcode.dev/api/API-Reference/filesystem
languagehttps://docs.phcode.dev/api/API-Reference/language/CSSUtils
preferenceshttps://docs.phcode.dev/api/API-Reference/preferences/PreferencesManager
projecthttps://docs.phcode.dev/api/API-Reference/project/FileSyncManager
searchhttps://docs.phcode.dev/api/API-Reference/search/FileFilters
utilshttps://docs.phcode.dev/api/API-Reference/utils/AppInit
viewhttps://docs.phcode.dev/api/API-Reference/view/MainViewFactory
widgetshttps://docs.phcode.dev/api/API-Reference/widgets/DefaultDialogs
workerhttps://docs.phcode.dev/api/API-Reference/worker/IndexingWorker
https://docs.phcode.dev/
https://docs.phcode.dev/api/API-Reference/file/FileUtils#import-
https://docs.phcode.dev/api/API-Reference/file/FileUtils#line_endings_crlf--enum
https://docs.phcode.dev/api/API-Reference/file/FileUtils#line_endings_lf--enum
https://docs.phcode.dev/api/API-Reference/file/FileUtils#maximium--number
https://docs.phcode.dev/api/API-Reference/file/FileUtils#readastextfile-bypasscache-options--promise
https://docs.phcode.dev/api/API-Reference/file/FileUtils#writetextfile-text-allowblindwrite--promise
LINE_ENDINGS_CRLFhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#LINE_ENDINGS_CRLF
LINE_ENDINGS_LFhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#LINE_ENDINGS_LF
https://docs.phcode.dev/api/API-Reference/file/FileUtils#getplatformlineendings--line_endings_crlf--line_endings_lf
LINE_ENDINGS_CRLFhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#LINE_ENDINGS_CRLF
LINE_ENDINGS_LFhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#LINE_ENDINGS_LF
https://docs.phcode.dev/api/API-Reference/file/FileUtils#snifflineendingstext--null--line_endings_crlf--line_endings_lf
https://docs.phcode.dev/api/API-Reference/file/FileUtils#translatelineendingstext-lineendings--string
LINE_ENDINGS_CRLFhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#LINE_ENDINGS_CRLF
LINE_ENDINGS_LFhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#LINE_ENDINGS_LF
https://docs.phcode.dev/api/API-Reference/file/FileUtils#getfileerrorstringname--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#makedialogfilelistarray
https://docs.phcode.dev/api/API-Reference/file/FileUtils#converttonativepathpath--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#convertwindowspathtounixpathpath--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#striptrailingslashpath--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#getbasenamefullpath--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#getnativebracketsdirectorypath--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#getnativemoduledirectorypath--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#getfileextensionfullpath--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#getrelativefilenamebasepath-filename--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#isstatichtmlfileextfilepath--boolean
https://docs.phcode.dev/api/API-Reference/file/FileUtils#getdirectorypathfullpath--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#getparentpathfullpath--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#getfilenamewithoutextensionfilename--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#comparefilenamesfilename1-filename2-extfirst--number
https://docs.phcode.dev/api/API-Reference/file/FileUtils#comparepathspath1-path2--number
https://docs.phcode.dev/api/API-Reference/file/FileUtils#encodefilepathpath--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#shouldopeninexternalapplicationext--string
https://docs.phcode.dev/api/API-Reference/file/FileUtils#addextensiontoexternalapplistext
PreviousTaskManagerhttps://docs.phcode.dev/api/API-Reference/features/TaskManager
NextFileSystemhttps://docs.phcode.dev/api/API-Reference/filesystem
Import :https://docs.phcode.dev/api/API-Reference/file/FileUtils#import-
LINE_ENDINGS_CRLF : enumhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#line_endings_crlf--enum
LINE_ENDINGS_LF : enumhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#line_endings_lf--enum
Maximium : Numberhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#maximium--number
readAsText(file, bypassCache, [options]) ⇒ $.Promisehttps://docs.phcode.dev/api/API-Reference/file/FileUtils#readastextfile-bypasscache-options--promise
writeText(file, text, [allowBlindWrite]) ⇒ $.Promisehttps://docs.phcode.dev/api/API-Reference/file/FileUtils#writetextfile-text-allowblindwrite--promise
getPlatformLineEndings() ⇒ LINE_ENDINGS_CRLF | LINE_ENDINGS_LFhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#getplatformlineendings--line_endings_crlf--line_endings_lf
sniffLineEndings(text) ⇒ null | LINE_ENDINGS_CRLF | LINE_ENDINGS_LFhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#snifflineendingstext--null--line_endings_crlf--line_endings_lf
translateLineEndings(text, lineEndings) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#translatelineendingstext-lineendings--string
getFileErrorString(name) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#getfileerrorstringname--string
makeDialogFileList(Array)https://docs.phcode.dev/api/API-Reference/file/FileUtils#makedialogfilelistarray
convertToNativePath(path) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#converttonativepathpath--string
convertWindowsPathToUnixPath(path) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#convertwindowspathtounixpathpath--string
stripTrailingSlash(path) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#striptrailingslashpath--string
getBaseName(fullPath) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#getbasenamefullpath--string
getNativeBracketsDirectoryPath() ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#getnativebracketsdirectorypath--string
getNativeModuleDirectoryPath() ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#getnativemoduledirectorypath--string
getFileExtension(fullPath) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#getfileextensionfullpath--string
getRelativeFilename(basePath, filename) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#getrelativefilenamebasepath-filename--string
isStaticHtmlFileExt(filePath) ⇒ booleanhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#isstatichtmlfileextfilepath--boolean
getDirectoryPath(fullPath) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#getdirectorypathfullpath--string
getParentPath(fullPath) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#getparentpathfullpath--string
getFilenameWithoutExtension(filename) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#getfilenamewithoutextensionfilename--string
compareFilenames(filename1, filename2, extFirst) ⇒ numberhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#comparefilenamesfilename1-filename2-extfirst--number
comparePaths(path1, path2) ⇒ numberhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#comparepathspath1-path2--number
encodeFilePath(path) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#encodefilepathpath--string
shouldOpenInExternalApplication(ext) ⇒ stringhttps://docs.phcode.dev/api/API-Reference/file/FileUtils#shouldopeninexternalapplicationext--string
addExtensionToExternalAppList(ext)https://docs.phcode.dev/api/API-Reference/file/FileUtils#addextensiontoexternalapplistext
Docshttps://docs.phcode.dev/docs/intro
APIhttps://docs.phcode.dev/api/getting-started
Discordhttps://discord.gg/rBpTBPttca
reddithttps://www.reddit.com/r/brackets/
Xhttps://x.com/phcodedev
YouTubehttps://www.youtube.com/channel/UCNK2a8DKqPQQe3GlfTk-RHg
Bloghttps://docs.phcode.dev/blog
GitHubhttps://github.com/phcode-dev/
Creditshttps://github.com/phcode-dev/docs/blob/main/CREDITS.md

Viewport: width=device-width,initial-scale=1


URLs of crawlers that visited me.