Codeunit 419 File Management

Base Application, System.IO

src/Layers/W1/BaseApp/Modules/System/FileOperations/FileManagement.Codeunit.al35 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

BLOBImport line 59

  1. 61callsBLOBImportWithFilter

BLOBImportWithFilter line 64

  1. 81callsValidateFileExtension
  2. 83callsCodeunit 4100 Temp Blob CreateOutStream

BLOBExportLocal line 94, local

  1. 106callsGetFileName
  2. 108callsCreateFileNameWithExtension
  3. 108callsGetExtension
  4. 109callsMagicpath
  5. 111callsGetToFilterText

BLOBExportWithEncoding line 117

  1. 123raisesOnBeforeBlobExportWithEncodingIsHandled
  2. 127callsCodeunit 4100 Temp Blob CreateInStream
  3. 128callsBLOBExportLocal

BLOBExport line 131

  1. 137raisesOnBeforeBlobExportIsHandled
  2. 141callsCodeunit 4100 Temp Blob CreateInStream
  3. 142callsBLOBExportLocal

ServerTempFileName line 146

  1. 151callsCreateFileNameWithExtension

DownloadTempFile line 157

  1. 163callsMagicpath

UploadFile line 170

  1. 174callsGetToFilterText
  2. 179callsUploadFileWithFilter

UploadFileWithFilter line 183

  1. 189raisesOnBeforeUploadFileWithFilterIsHandled
  2. 200callsValidateFileExtension

DownloadHandler line 216

  1. 221raisesOnBeforeDownloadHandlerIsHandled
  2. 229raisesOnAfterDownloadHandler

DownloadFromStreamHandler line 232

  1. 238raisesOnBeforeDownloadFromStreamHandlerIsHandled

CopyServerFile line 251

  1. 253callsIsAllowedPath
  2. 254callsIsAllowedPath

DeleteServerFile line 264

  1. 266callsIsAllowedPath

ServerDirectoryExists line 275

  1. 277callsIsAllowedPath

ServerCreateDirectory line 282

  1. 284callsIsAllowedPath
  2. 285callsServerDirectoryExists

ServerCreateTempSubDirectory line 290

  1. 294callsServerTempFileName
  2. 295callsCombinePath
  3. 295callsGetDirectoryName
  4. 296callsServerCreateDirectory
  5. 297callsDeleteServerFile

ServerRemoveDirectory line 301

  1. 303callsIsAllowedPath
  2. 304callsServerDirectoryExists

GetPathWithSafeFileName line 325

  1. 330callsGetDirectoryName
  2. 331callsGetSafeFileName
  3. 331callsGetFileName
  4. 332callsCombinePath

GetServerDirectoryFilesList line 365

  1. 371writesTable 823 Name/Value Buffer DeleteAll
  2. 373callsIsAllowedPath
  3. 378callsGetFileNameWithoutExtension
  4. 379writesTable 823 Name/Value Buffer Insert

GetServerDirectoryFilesListInclSubDirs line 384

  1. 387writesTable 823 Name/Value Buffer DeleteAll
  2. 389callsGetServerDirectoryFilesListInclSubDirsInner

GetServerDirectoryFilesListInclSubDirsInner line 392, local

  1. 399callsIsAllowedPath
  2. 405callsServerDirectoryExists
  3. 410callsGetFileNameWithoutExtension
  4. 411writesTable 823 Name/Value Buffer Insert

GetServerFileProperties line 418

  1. 423callsIsAllowedPath

BLOBImportFromServerFile line 436

  1. 442callsIsAllowedPath
  2. 449callsCodeunit 4100 Temp Blob CreateOutStream

BLOBExportToServerFile line 455

  1. 467callsCodeunit 4100 Temp Blob CreateInStream

InstreamExportToServerFile line 473

  1. 478callsServerTempFileName

TempBlobToServerFile line 487, internal

  1. 491callsCodeunit 4100 Temp Blob CreateInStream
  2. 492callsInstreamExportToServerFile

CreateAndWriteToServerFile line 496

  1. 501callsServerTempFileName

GetToFilterText line 508

  1. 515callsGetExtension
  2. 540raisesOnAfterGetToFilterTextSetOutExt

IsValidFileName line 559

  1. 566callsGetFileName
  2. 570callsGetDirectoryName

ValidateFileExtension line 577

  1. 585callsGetExtension
  2. 585callsGetFileName

StripNotsupportChrInFileName line 623

  1. 626callsGetSafeFileName

ExportImage line 630

  1. 636writesTable 823 Name/Value Buffer DeleteAll
  2. 637callsCodeunit 419 File Management GetServerDirectoryFilesList
  3. 640callsStripNotsupportChrInFileName
  4. 642callsCodeunit 419 File Management DeleteServerFile

IsServerDirectoryEmpty line 654

  1. 656callsIsAllowedPath

IsAllowedPath line 694

  1. 699callsCodeunit 457 Environment Information IsSaaS
  2. 700callsCodeunit 1299 Web Request Helper IsHttpUrl

AppendFileNameWithIndex line 711

  1. 717callsGetExtension